schema fix
This commit is contained in:
@@ -92,10 +92,10 @@ export async function listNotifications(
|
||||
]);
|
||||
|
||||
if (notifications[0].data.length === 0)
|
||||
return { orgs: [], metadata: { count: 0, page, pageSize } };
|
||||
return { notifications: [], metadata: { count: 0, page, pageSize } };
|
||||
|
||||
return {
|
||||
orgs: notifications[0].data,
|
||||
notifications: notifications[0].data,
|
||||
metadata: {
|
||||
count: notifications[0].metadata[0].count,
|
||||
page,
|
||||
|
||||
Reference in New Issue
Block a user