update limite to offset

This commit is contained in:
2024-11-28 13:05:08 +07:00
parent 506f06370c
commit 09dcea8d99
4 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ export class UserController {
const res_list = userRepository.createQueryBuilder()
.where(whereAttr, whereVal)
.orderBy(param.order_field, param.order_direction)
.skip(offset)
.offset(offset)
.limit(param.limit);
if (param.with_deleted) {