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");
}
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;