mirror of
https://github.com/docmost/docmost.git
synced 2026-05-19 07:54:05 +08:00
support beforeCursor/prevCursor
This commit is contained in:
@@ -62,7 +62,8 @@ export class GroupUserRepo {
|
||||
|
||||
const result = await executeWithCursorPagination(query, {
|
||||
perPage: pagination.limit,
|
||||
after: pagination.cursor,
|
||||
cursor: pagination.cursor,
|
||||
beforeCursor: pagination.beforeCursor,
|
||||
fields: [{ expression: 'users.id', direction: 'asc', key: 'id' }],
|
||||
parseCursor: (cursor) => ({ id: cursor.id }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user