diff --git a/src/controllers/EmployeePositionController.ts b/src/controllers/EmployeePositionController.ts index ab47c9d8..f7dea189 100644 --- a/src/controllers/EmployeePositionController.ts +++ b/src/controllers/EmployeePositionController.ts @@ -2188,6 +2188,7 @@ export class EmployeePositionController extends Controller { ) { const posMaster = await this.employeePosMasterRepository.findOne({ where: { id: body.posmasterId }, + relations: ["orgRoot"], }); if (posMaster == null) throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตำแหน่งนี้");