This commit is contained in:
AdisakKanthawilang 2025-05-02 16:01:13 +07:00
parent aa11858af8
commit 1132840554

View file

@ -243,7 +243,7 @@ export class kpiPlanController extends Controller {
.andWhere("kpiPeriod.durationKPI = :durationKPI", { durationKPI: requestBody.period })
.getOne();
if (!kpiPeriod) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลตัวชี้วัดตามตำแหน่งนี้");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบข้อมูลรอบการประเมินนี้");
}
}
Object.assign(kpiPlan, requestBody);