From 277c60864d269e843ed6d9ea2309e85207d0e186 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Wed, 31 Jan 2024 16:11:49 +0700 Subject: [PATCH 1/2] no message --- src/controllers/PositionController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/PositionController.ts b/src/controllers/PositionController.ts index 89909974..31cfa19d 100644 --- a/src/controllers/PositionController.ts +++ b/src/controllers/PositionController.ts @@ -626,8 +626,8 @@ export class PositionController extends Controller { * @summary ORG_037 - รายละเอียดอัตรากำลัง (ADMIN) #36 * */ - @Get("master/{id}") - async detail(@Path() id: string) { + @Get("position/{id}") + async detailPosition(@Path() id: string, @Query("isAll") isAll?: string) { try { const posMaster = await this.posMasterRepository.findOne({ where: { id }, From 036281901d2d87448f74b3cf246677cc4ec03b76 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Wed, 31 Jan 2024 16:12:07 +0700 Subject: [PATCH 2/2] no message --- src/controllers/PositionController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/PositionController.ts b/src/controllers/PositionController.ts index 31cfa19d..3be43dca 100644 --- a/src/controllers/PositionController.ts +++ b/src/controllers/PositionController.ts @@ -627,7 +627,7 @@ export class PositionController extends Controller { * */ @Get("position/{id}") - async detailPosition(@Path() id: string, @Query("isAll") isAll?: string) { + async detailPosition(@Path() id: string) { try { const posMaster = await this.posMasterRepository.findOne({ where: { id },