diff --git a/src/controllers/KpiPlanController.ts b/src/controllers/KpiPlanController.ts index 259445d..6006ccf 100644 --- a/src/controllers/KpiPlanController.ts +++ b/src/controllers/KpiPlanController.ts @@ -236,7 +236,7 @@ export class kpiPlanController extends Controller { throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตัวชี้วัดตามแผนฯนี้"); } - if (requestBody.year != null) { + if (requestBody.period != null) { const kpiPeriod = await this.kpiPeriodRepository .createQueryBuilder("kpiPeriod") .where("kpiPeriod.year = :year", { year: requestBody.year })