From 664e42816ef10bd9cd3d8318ddd7f28a84434311 Mon Sep 17 00:00:00 2001 From: kittapath Date: Mon, 3 Feb 2025 17:41:27 +0700 Subject: [PATCH] no message --- src/controllers/KpiPlanController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })