fix: user helper in members page

This commit is contained in:
Torsten Dittmann committed 2022-10-27 17:18:42 +02:00
1 parent ff041d4e7d
commit c17dac8d6d
1 file changed
+2 -1
@@ -1,11 +1,12 @@
import { PAGE_LIMIT } from '$lib/constants';
import { pageToOffset } from '$lib/helpers/load';
import { sdkForConsole } from '$lib/stores/sdk';
import { Query } from '@aw-labs/appwrite-console';
import type { PageLoad } from './$types';
export const load: PageLoad = async ({ params }) => {
const page = Number(params.page);
const offset = page ? page * 5 - 5 : 0;
const offset = pageToOffset(page, PAGE_LIMIT);
return {
offset,