From 871e2e52478503f40fe97c005e9163cbbdb968f8 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 29 Jan 2025 09:27:10 +0700 Subject: [PATCH] get id profile insignia --- src/controllers/ProfileInsigniaController.ts | 2 +- src/controllers/ProfileInsigniaEmployeeController.ts | 2 +- src/controllers/ProfileInsigniaEmployeeTempController.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/ProfileInsigniaController.ts b/src/controllers/ProfileInsigniaController.ts index 852de8ec..131b5d52 100644 --- a/src/controllers/ProfileInsigniaController.ts +++ b/src/controllers/ProfileInsigniaController.ts @@ -150,7 +150,7 @@ export class ProfileInsigniaController extends Controller { history.profileInsigniaId = data.id; await this.insigniaHistoryRepo.save(history, { data: req }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{insigniaId}") diff --git a/src/controllers/ProfileInsigniaEmployeeController.ts b/src/controllers/ProfileInsigniaEmployeeController.ts index 6db83733..455e443d 100644 --- a/src/controllers/ProfileInsigniaEmployeeController.ts +++ b/src/controllers/ProfileInsigniaEmployeeController.ts @@ -157,7 +157,7 @@ export class ProfileInsigniaEmployeeController extends Controller { history.profileInsigniaId = data.id; await this.insigniaHistoryRepo.save(history, { data: req }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{insigniaId}") diff --git a/src/controllers/ProfileInsigniaEmployeeTempController.ts b/src/controllers/ProfileInsigniaEmployeeTempController.ts index 7c353273..d12ed3ab 100644 --- a/src/controllers/ProfileInsigniaEmployeeTempController.ts +++ b/src/controllers/ProfileInsigniaEmployeeTempController.ts @@ -149,7 +149,7 @@ export class ProfileInsigniaEmployeeTempController extends Controller { history.profileInsigniaId = data.id; await this.insigniaHistoryRepo.save(history, { data: req }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{insigniaId}")