no message
This commit is contained in:
parent
551d2d70a4
commit
60f5203ff4
3 changed files with 25 additions and 25 deletions
|
|
@ -99,12 +99,16 @@ 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");
|
||||
// }
|
||||
if (requestBody.posExecutiveId != "") requestBody.posExecutiveId = null;
|
||||
|
||||
if (requestBody.posExecutiveId != null) {
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue