no message

This commit is contained in:
Kittapath 2024-02-07 12:43:49 +07:00
parent ca82158a20
commit 148fa2c81c
6 changed files with 65 additions and 30 deletions

View file

@ -99,7 +99,10 @@ export class PositionController extends Controller {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล PosLevelId");
}
if (requestBody.posExecutiveId != "") requestBody.posExecutiveId = null;
if (requestBody.posExecutiveId == "") {
requestBody.posExecutiveId = null;
posDict.posExecutiveId = null;
}
if (requestBody.posExecutiveId != null) {
const checkPosExecutiveId = await this.posExecutiveRepository.findOne({