From bb2d77e825a773f5e4c15a07ff945521ad2aed67 Mon Sep 17 00:00:00 2001 From: avicenan Date: Wed, 29 Apr 2026 19:36:20 +0700 Subject: [PATCH] fix(examination-type): list error in offset and limit --- src/controllers/examination_type.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();