diff --git a/src/modules/user/user.service.ts b/src/modules/user/user.service.ts index 666f8ff..4bc65f6 100644 --- a/src/modules/user/user.service.ts +++ b/src/modules/user/user.service.ts @@ -83,7 +83,7 @@ export class UserService { } } - query = query.offset(paginationParam.offset).limit(paginationParam.limit); + query = query.skip(paginationParam.offset).take(paginationParam.limit); const users = await query.getMany();