From aaaf4f548cd35c10e85d0758d56bd3fd5b69dd7c Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 22 Feb 2024 17:52:39 +0700 Subject: [PATCH] no message --- src/controllers/SalaryPeriodController.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/controllers/SalaryPeriodController.ts b/src/controllers/SalaryPeriodController.ts index 0ab6046..7c16e5f 100644 --- a/src/controllers/SalaryPeriodController.ts +++ b/src/controllers/SalaryPeriodController.ts @@ -197,10 +197,10 @@ export class SalaryPeriodController extends Controller { const formattedData = filteredSalaryPeriod.map((item) => ({ id: item.id, - salaryType: item.period, - isSpecial: item.isActive, - posTypeId: item.effectiveDate, - posType: item.status, + period: item.period, + isActive: item.isActive, + effectiveDate: item.effectiveDate, + status: item.status, })); return new HttpSuccess({ data: formattedData, total: formattedData.length }); @@ -210,11 +210,11 @@ export class SalaryPeriodController extends Controller { } const formattedData = salaryPeriod.map((item) => ({ - id: item.id, - salaryType: item.period, - isSpecial: item.isActive, - posTypeId: item.effectiveDate, - posType: item.status, + id: item.id, + period: item.period, + isActive: item.isActive, + effectiveDate: item.effectiveDate, + status: item.status, })); return new HttpSuccess({ data: formattedData, total });