diff --git a/src/controllers/KpiUserEvaluationController.ts b/src/controllers/KpiUserEvaluationController.ts index bb80eaf..08e372d 100644 --- a/src/controllers/KpiUserEvaluationController.ts +++ b/src/controllers/KpiUserEvaluationController.ts @@ -1971,7 +1971,7 @@ export class KpiUserEvaluationController extends Controller { // await new permission().PermissionCreate(request, "SYS_RESULT");//USER const kpiUserEvaluations = await this.kpiUserEvalutionRepository.find({ where: { id: In(requestBody.id) }, - relations: ["kpiUserDevelopments", "kpiUserDevelopments.developmentProjects"], + relations: ["kpiPeriod", "kpiUserDevelopments", "kpiUserDevelopments.developmentProjects"], }); await Promise.all( @@ -1981,6 +1981,7 @@ export class KpiUserEvaluationController extends Controller { .PostData(request, "/org/profile/assessments", { date: new Date(), name: kpiUserEvaluation.evaluationResults, + period: kpiUserEvaluation?.kpiPeriod?.durationKPI ?? null, point1Total: kpiUserEvaluation.weightPoint1, point1: kpiUserEvaluation.totalPoint1, point2Total: kpiUserEvaluation.weightPoint2,