Skip to content

Commit

Permalink
refactor: replace offset-limit with skip-take
Browse files Browse the repository at this point in the history
note: this is another typeorm specific issue
  • Loading branch information
crazyoptimist committed Aug 22, 2024
1 parent ed502da commit c4e6e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit c4e6e74

Please sign in to comment.