diff --git a/src/controllers/ProfileAbilityController.ts b/src/controllers/ProfileAbilityController.ts index dc641c1a..41409586 100644 --- a/src/controllers/ProfileAbilityController.ts +++ b/src/controllers/ProfileAbilityController.ts @@ -134,7 +134,7 @@ export class ProfileAbilityController extends Controller { history.profileAbilityId = data.id; await this.profileAbilityHistoryRepo.save(history, { data: req }); //setLogDataDiff(req, { before, after: history }); - return new HttpSuccess(data.id); + return new HttpSuccess(); } @Patch("{abilityId}") diff --git a/src/controllers/ProfileActpositionEmployeeController.ts b/src/controllers/ProfileActpositionEmployeeController.ts index 667b5e25..2ada7dd3 100644 --- a/src/controllers/ProfileActpositionEmployeeController.ts +++ b/src/controllers/ProfileActpositionEmployeeController.ts @@ -139,7 +139,7 @@ export class ProfileActpositionEmployeeController extends Controller { await this.profileActpositionHistoryRepo.save(history, { data: req }); //setLogDataDiff(req, { before, after: history }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{actpositionId}") diff --git a/src/controllers/ProfileActpositionEmployeeTempController.ts b/src/controllers/ProfileActpositionEmployeeTempController.ts index fb2603c1..630cb785 100644 --- a/src/controllers/ProfileActpositionEmployeeTempController.ts +++ b/src/controllers/ProfileActpositionEmployeeTempController.ts @@ -133,7 +133,7 @@ export class ProfileActpositionEmployeeTempController extends Controller { await this.profileActpositionHistoryRepo.save(history, { data: req }); //setLogDataDiff(req, { before, after: history }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{actpositionId}") diff --git a/src/controllers/ProfileAssessmentsController.ts b/src/controllers/ProfileAssessmentsController.ts index ca81cb53..f8ca30e0 100644 --- a/src/controllers/ProfileAssessmentsController.ts +++ b/src/controllers/ProfileAssessmentsController.ts @@ -146,7 +146,7 @@ export class ProfileAssessmentsController extends Controller { await this.profileAssessmentsHistoryRepository.save(history, { data: req }); setLogDataDiff(req, { before, after: history }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{assessmentId}") diff --git a/src/controllers/ProfileAssessmentsEmployeeController.ts b/src/controllers/ProfileAssessmentsEmployeeController.ts index 034218f4..26127f3e 100644 --- a/src/controllers/ProfileAssessmentsEmployeeController.ts +++ b/src/controllers/ProfileAssessmentsEmployeeController.ts @@ -147,7 +147,7 @@ export class ProfileAssessmentsEmployeeController extends Controller { await this.profileAssessmentsHistoryRepository.save(history, { data: req }); setLogDataDiff(req, { before, after: history }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{assessmentId}") diff --git a/src/controllers/ProfileAssessmentsEmployeeTempController.ts b/src/controllers/ProfileAssessmentsEmployeeTempController.ts index d9e2b47a..2aa62ff7 100644 --- a/src/controllers/ProfileAssessmentsEmployeeTempController.ts +++ b/src/controllers/ProfileAssessmentsEmployeeTempController.ts @@ -140,7 +140,7 @@ export class ProfileAssessmentsEmployeeTempController extends Controller { await this.profileAssessmentsHistoryRepository.save(history, { data: req }); //setLogDataDiff(req, { before, after: history }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{assessmentId}") diff --git a/src/controllers/ProfileAssistanceController.ts b/src/controllers/ProfileAssistanceController.ts index 59cb4323..5db71276 100644 --- a/src/controllers/ProfileAssistanceController.ts +++ b/src/controllers/ProfileAssistanceController.ts @@ -134,7 +134,7 @@ export class ProfileAssistanceController extends Controller { history.profileAssistanceId = data.id; await this.profileAssistanceHistoryRepo.save(history, { data: req }); //setLogDataDiff(req, { before, after: history }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{assistanceId}") diff --git a/src/controllers/ProfileAssistanceEmployeeController.ts b/src/controllers/ProfileAssistanceEmployeeController.ts index 4bb592e3..7a74675f 100644 --- a/src/controllers/ProfileAssistanceEmployeeController.ts +++ b/src/controllers/ProfileAssistanceEmployeeController.ts @@ -139,7 +139,7 @@ export class ProfileAssistanceEmployeeController extends Controller { await this.profileAssistanceHistoryRepo.save(history, { data: req }); //setLogDataDiff(req, { before, after: history }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{assistanceId}") diff --git a/src/controllers/ProfileAssistanceEmployeeTempController.ts b/src/controllers/ProfileAssistanceEmployeeTempController.ts index 79c02f2a..546e8f88 100644 --- a/src/controllers/ProfileAssistanceEmployeeTempController.ts +++ b/src/controllers/ProfileAssistanceEmployeeTempController.ts @@ -133,7 +133,7 @@ export class ProfileAssistanceEmployeeTempController extends Controller { await this.profileAssistanceHistoryRepo.save(history, { data: req }); //setLogDataDiff(req, { before, after: history }); - return new HttpSuccess(); + return new HttpSuccess(data.id); } @Patch("{assistanceId}")