diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index 49cf9fc..60c8ec7 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -42,7 +42,7 @@ export class ReportController extends Controller { periodId?: string | null; profileId?: string | null; // filters?: string | null; - // keyword?: string | null; + // keyword?: string | null; }, ) { let templateName: any; @@ -89,7 +89,6 @@ export class ReportController extends Controller { reportName = "KPI8"; } if (requestBody.root && requestBody.periodId) { - const getEvaluations = await this.kpiUserEvaluationRepository.find({ where: { kpiPeriodId: requestBody.periodId }, }); @@ -123,7 +122,6 @@ export class ReportController extends Controller { // roundNo: "๑ (๒๕๖๔) ", // officer: officer, // }; - } // if (requestBody.filters && requestBody.keyword) { // } @@ -134,11 +132,8 @@ export class ReportController extends Controller { }); } - - @Post("kpi9/{periodId}") - async GetReportKpi9( - @Path() profileId?: string | null, - ) { + @Post("kpi9/{profileId}") + async GetReportKpi9(@Path() profileId?: string | null) { let formattedData: any; if (profileId) { const kpiUserEvaluation = await this.kpiUserEvaluationRepository.findOne({ @@ -162,9 +157,7 @@ export class ReportController extends Controller { where: { kpiPeriodId: period?.id }, }); - formattedData = { - - }; + formattedData = {}; } return new HttpSuccess({