comment validate fields PosExecutiveId
This commit is contained in:
parent
1c550a2f0c
commit
5e11dbba03
1 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue