diff --git a/src/controllers/PositionController.ts b/src/controllers/PositionController.ts index 41b3456c..c3c13945 100644 --- a/src/controllers/PositionController.ts +++ b/src/controllers/PositionController.ts @@ -229,6 +229,7 @@ export class PositionController extends Controller { throw new HttpError(HttpStatusCode.NOT_FOUND, "ข้อมูล Row นี้มีอยู่ในระบบแล้ว"); } + posDict.posExecutiveId = posExecutive == null ? null : posExecutive.id; posDict.createdUserId = request.user.sub; posDict.createdFullName = request.user.name; posDict.lastUpdateUserId = request.user.sub;