use pre and next cursor check from the server

This commit is contained in:
notmd
2023-01-21 23:12:19 +07:00
parent 0cc6b3b8ae
commit c1dd188cbe
3 changed files with 84 additions and 106 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import prisma from "src/lib/prismadb";
/**
* The number of users to fetch in a single request. Could later be a query parameter.
*/
const PAGE_SIZE = 20;
const PAGE_SIZE = 2;
/**
* Returns a list of user results from the database when the requesting user is