From be7f719fd54efa01972094eb3ed18cc2bbc06246 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Thu, 8 Aug 2024 09:14:08 +0700 Subject: [PATCH] no message --- src/controllers/EmployeePositionController.ts | 1 + 1 file changed, 1 insertion(+) 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, "ไม่พบข้อมูลตำแหน่งนี้");