Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop

This commit is contained in:
AdisakKanthawilang 2024-02-01 17:37:11 +07:00
commit c574726522

View file

@ -221,12 +221,12 @@ export class PositionController extends Controller {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล PosLevelId"); throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล PosLevelId");
} }
const checkPosExecutiveId = await this.posExecutiveRepository.findOne({ // const checkPosExecutiveId = await this.posExecutiveRepository.findOne({
where: { id: requestBody.posExecutiveId }, // where: { id: requestBody.posExecutiveId },
}); // });
if (!checkPosExecutiveId) { // if (!checkPosExecutiveId) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล PosExecutiveId"); // throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล PosExecutiveId");
} // }
try { try {
posDict.createdUserId = request.user.sub; posDict.createdUserId = request.user.sub;