From bceeab8ba91a998daa2f2f16291cfcb082bf23f8 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Tue, 6 May 2025 11:55:33 +0700 Subject: [PATCH] fix --- src/controllers/ProfileLeaveController.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controllers/ProfileLeaveController.ts b/src/controllers/ProfileLeaveController.ts index 794c5785..f5601c02 100644 --- a/src/controllers/ProfileLeaveController.ts +++ b/src/controllers/ProfileLeaveController.ts @@ -133,7 +133,10 @@ export class ProfileLeaveController extends Controller { await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", profileId); const record = await this.leaveRepo.find({ relations: { leaveType: true }, - where: { profileId: profileId, status: Not("cancel") }, + where: { + profileId: profileId, + // status: Not("cancel") + }, order: { createdAt: "ASC" }, }); return new HttpSuccess(record);