Fixed paging. Updated edit props.

This commit is contained in:
Mike Cao 2024-02-05 15:32:36 -08:00
parent d392e500c6
commit b9825304c3
10 changed files with 32 additions and 46 deletions

View file

@ -195,7 +195,7 @@ async function pagedQuery<T>(model: string, criteria: T, filters: SearchFilter)
const count = await prisma.client[model].count({ where: (criteria as any).where });
return { data, count, page: +page, pageSize, orderBy };
return { data, count, page: +page, pageSize: size, orderBy };
}
function getQueryMode(): Prisma.QueryMode {