fix(examination-type): list error in offset and limit

This commit is contained in:
avicenan
2026-04-29 19:36:20 +07:00
parent 7a2729d4fd
commit bb2d77e825

View File

@ -52,8 +52,8 @@ export class ExaminationTypeController {
const res_list = query const res_list = query
.leftJoinAndSelect("ExaminationType.services", "services") .leftJoinAndSelect("ExaminationType.services", "services")
.orderBy("ExaminationType." + param.order_field, param.order_direction) .orderBy("ExaminationType." + param.order_field, param.order_direction)
.take(limit) .offset(offset)
.skip(offset); .limit(limit)
if (param.with_deleted) { if (param.with_deleted) {
res_count.withDeleted(); res_count.withDeleted();