no message

This commit is contained in:
kittapath 2025-02-03 17:41:27 +07:00
parent 2ba5ac41c4
commit 664e42816e

View file

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