mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
fork refine
This commit is contained in:
5
packages/appwrite/src/utils/getAppwritePagination.ts
Normal file
5
packages/appwrite/src/utils/getAppwritePagination.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Query } from "appwrite";
|
||||
|
||||
export const getAppwritePagination = (current: number, pageSize: number) => {
|
||||
return [Query.offset((current - 1) * pageSize), Query.limit(pageSize)];
|
||||
};
|
||||
Reference in New Issue
Block a user