This commit is contained in:
AdisakKanthawilang 2024-05-13 13:17:23 +07:00
parent f0e3ad2664
commit 25adeb39eb

View file

@ -75,8 +75,9 @@ export class kpiReasonController extends Controller {
if (user.trim().toUpperCase() == "USER") {
const kpiUserEvaluation = await this.kpiUserPlan.findOne({
where: { id: id },
relations: ["kpiUserEvaluation", "kpiUserEvaluation.evaluatorId"],
relations: ["kpiUserEvaluation"],
});
if (!kpiUserEvaluation) {
throw new HttpError(
HttpStatusCode.NOT_FOUND,