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 });