Added paging to dashboard.

This commit is contained in:
Mike Cao committed 2023-08-30 15:23:08 -07:00
1 parent 50b4ac9889
commit 33ffa0b3d1
6 files changed
+56 -39

No files matched your search

+2 -1
View File
@@ -107,7 +107,8 @@ export async function getWebsites(
...pageFilters,
...(options?.include && { include: options.include }),
});
const count = await prisma.client.website.count({ where });
const count = await prisma.client.website.count({ where: { ...where, deletedAt: null } });
return { data: websites, count, ...getParameters };
}