diff --git a/src/controllers/examination_type.ts b/src/controllers/examination_type.ts index 46da3f4..01635fd 100644 --- a/src/controllers/examination_type.ts +++ b/src/controllers/examination_type.ts @@ -52,8 +52,8 @@ export class ExaminationTypeController { const res_list = query .leftJoinAndSelect("ExaminationType.services", "services") .orderBy("ExaminationType." + param.order_field, param.order_direction) - .take(limit) - .skip(offset); + .offset(offset) + .limit(limit) if (param.with_deleted) { res_count.withDeleted();