fix(examination-type): list error in offset and limit
This commit is contained in:
@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user