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;