From ea7040f462cf1269fbb913018dfb646c77f1120f Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Wed, 7 May 2025 17:57:43 +0700 Subject: [PATCH] no message --- src/controllers/CommandController.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index f806b20b..c5e4ae57 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -5804,7 +5804,7 @@ export class CommandController extends Controller { body.refIds.map(async (item) => { const profile = await this.profileEmployeeRepository.findOne({ where: { id: item.refId }, - relations: ["roleKeycloaks",], + relations: ["roleKeycloaks"], }); if (!profile) { throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว"); @@ -5815,8 +5815,6 @@ export class CommandController extends Controller { orgRevisionIsDraft: false, }, }); - const orgRevisionRef = - profile?.current_holders?.find((x) => x.orgRevisionId == orgRevision?.id) ?? null; const _posMaster = await this.employeePosMasterRepository.findOne({ where: { orgRevisionId: orgRevision?.id,