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