From 29f4326e9bde7a35b2984cf3cdd3ae6cd1e01b97 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 15 Mar 2024 11:42:28 +0700 Subject: [PATCH] fix --- src/controllers/EmployeePositionController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/EmployeePositionController.ts b/src/controllers/EmployeePositionController.ts index 924647dc..85d22385 100644 --- a/src/controllers/EmployeePositionController.ts +++ b/src/controllers/EmployeePositionController.ts @@ -227,7 +227,7 @@ export class EmployeePositionController extends Controller { @Get("position/{id}") async detailPosition(@Path() id: string) { const posMaster = await this.employeePosMasterRepository.findOne({ - where: { id }, + where: { id:id }, }); if (!posMaster) { throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูล");