From 505baa7bba66c071cc54bc6024ff8c7a068e307b Mon Sep 17 00:00:00 2001 From: Kittapath Date: Fri, 28 Jun 2024 14:02:41 +0700 Subject: [PATCH] no message --- src/controllers/KpiUserEvaluationController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/KpiUserEvaluationController.ts b/src/controllers/KpiUserEvaluationController.ts index e700367..ccfbb07 100644 --- a/src/controllers/KpiUserEvaluationController.ts +++ b/src/controllers/KpiUserEvaluationController.ts @@ -31,7 +31,7 @@ import { updateKpiUserReqEditEvaluation, updateKpiUserResultEvaluation, } from "../entities/kpiUserEvaluation"; -import { Like, In, Brackets } from "typeorm"; +import { Like, In, Brackets, IsNull, Not } from "typeorm"; import CallAPI from "../interfaces/call-api"; import { KpiCapacity } from "../entities/kpiCapacity"; import { Position } from "../entities/position"; @@ -389,7 +389,7 @@ export class KpiUserEvaluationController extends Controller { // GROUP CAPACITY const findPosition = await this.kpiPositionRepository.findOne({ - where: { name: kpiUserEvaluation.position }, + where: { name: kpiUserEvaluation.position, kpiLinkId: Not(IsNull()) }, }); let levelForGourp: any = null;