From 5e11dbba03f89a2f677f1f8334c0f3bba1fa6b9e Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 1 Feb 2024 17:31:55 +0700 Subject: [PATCH] comment validate fields PosExecutiveId --- src/controllers/PositionController.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controllers/PositionController.ts b/src/controllers/PositionController.ts index c5e340b9..636ae9f1 100644 --- a/src/controllers/PositionController.ts +++ b/src/controllers/PositionController.ts @@ -220,12 +220,12 @@ export class PositionController extends Controller { throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล PosLevelId"); } - const checkPosExecutiveId = await this.posExecutiveRepository.findOne({ - where: { id: requestBody.posExecutiveId }, - }); - if (!checkPosExecutiveId) { - throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล PosExecutiveId"); - } + // const checkPosExecutiveId = await this.posExecutiveRepository.findOne({ + // where: { id: requestBody.posExecutiveId }, + // }); + // if (!checkPosExecutiveId) { + // throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล PosExecutiveId"); + // } try { posDict.createdUserId = request.user.sub;