fix bug
This commit is contained in:
parent
25adeb39eb
commit
413fe10f19
1 changed files with 4 additions and 13 deletions
|
|
@ -156,7 +156,6 @@ export class kpiReasonController extends Controller {
|
|||
relations: [
|
||||
"kpiUserPlanned",
|
||||
"kpiUserPlanned.kpiUserEvaluation",
|
||||
"kpiUserPlanned.kpiUserEvaluation.evaluatorId",
|
||||
],
|
||||
});
|
||||
if (!kpiReason) {
|
||||
|
|
@ -241,7 +240,7 @@ export class kpiReasonController extends Controller {
|
|||
if (user.trim().toUpperCase() == "USER") {
|
||||
const kpiUserEvaluation = await this.kpiUserRole.findOne({
|
||||
where: { id: id },
|
||||
relations: ["kpiUserEvaluation", "kpiUserEvaluation.evaluatorId"],
|
||||
relations: ["kpiUserEvaluation"],
|
||||
});
|
||||
if (!kpiUserEvaluation) {
|
||||
throw new HttpError(
|
||||
|
|
@ -266,7 +265,6 @@ export class kpiReasonController extends Controller {
|
|||
relations: [
|
||||
"kpiUserRole",
|
||||
"kpiUserRole.kpiUserEvaluation",
|
||||
"kpiUserRole.kpiUserEvaluation.evaluatorId",
|
||||
],
|
||||
});
|
||||
if (!kpiReason) {
|
||||
|
|
@ -316,7 +314,6 @@ export class kpiReasonController extends Controller {
|
|||
relations: [
|
||||
"kpiUserRole",
|
||||
"kpiUserRole.kpiUserEvaluation",
|
||||
"kpiUserRole.kpiUserEvaluation.evaluatorId",
|
||||
],
|
||||
});
|
||||
if (!kpiReason) {
|
||||
|
|
@ -401,7 +398,7 @@ export class kpiReasonController extends Controller {
|
|||
if (user.trim().toUpperCase() == "USER") {
|
||||
const kpiUserEvaluation = await this.kpiUserSpecial.findOne({
|
||||
where: { id: id },
|
||||
relations: ["kpiUserEvaluation", "kpiUserEvaluation.evaluatorId"],
|
||||
relations: ["kpiUserEvaluation"],
|
||||
});
|
||||
if (!kpiUserEvaluation) {
|
||||
throw new HttpError(
|
||||
|
|
@ -429,7 +426,6 @@ export class kpiReasonController extends Controller {
|
|||
relations: [
|
||||
"kpiUserSpecial",
|
||||
"kpiUserSpecial.kpiUserEvaluation",
|
||||
"kpiUserSpecial.kpiUserEvaluation.evaluatorId",
|
||||
],
|
||||
});
|
||||
if (!kpiReason) {
|
||||
|
|
@ -479,7 +475,6 @@ export class kpiReasonController extends Controller {
|
|||
relations: [
|
||||
"kpiUserSpecial",
|
||||
"kpiUserSpecial.kpiUserEvaluation",
|
||||
"kpiUserSpecial.kpiUserEvaluation.evaluatorId",
|
||||
],
|
||||
});
|
||||
if (!kpiReason) {
|
||||
|
|
@ -564,7 +559,7 @@ export class kpiReasonController extends Controller {
|
|||
if (user.trim().toUpperCase() == "USER") {
|
||||
const kpiUserEvaluation = await this.kpiUserDevelopment.findOne({
|
||||
where: { id: id },
|
||||
relations: ["kpiUserEvaluation", "kpiUserEvaluation.evaluatorId"],
|
||||
relations: ["kpiUserEvaluation"],
|
||||
});
|
||||
if (!kpiUserEvaluation) {
|
||||
throw new HttpError(
|
||||
|
|
@ -592,7 +587,6 @@ export class kpiReasonController extends Controller {
|
|||
relations: [
|
||||
"kpiUserDevelopment",
|
||||
"kpiUserDevelopment.kpiUserEvaluation",
|
||||
"kpiUserDevelopment.kpiUserEvaluation.evaluatorId",
|
||||
],
|
||||
});
|
||||
if (!kpiReason) {
|
||||
|
|
@ -642,7 +636,6 @@ export class kpiReasonController extends Controller {
|
|||
relations: [
|
||||
"kpiUserDevelopment",
|
||||
"kpiUserDevelopment.kpiUserEvaluation",
|
||||
"kpiUserDevelopment.kpiUserEvaluation.evaluatorId",
|
||||
],
|
||||
});
|
||||
if (!kpiReason) {
|
||||
|
|
@ -731,7 +724,7 @@ export class kpiReasonController extends Controller {
|
|||
if (user.trim().toUpperCase() == "USER") {
|
||||
const kpiUserEvaluation = await this.kpiUserCapacity.findOne({
|
||||
where: { id: id },
|
||||
relations: ["kpiUserEvaluation", "kpiUserEvaluation.evaluatorId"],
|
||||
relations: ["kpiUserEvaluation"],
|
||||
});
|
||||
if (!kpiUserEvaluation) {
|
||||
throw new HttpError(
|
||||
|
|
@ -759,7 +752,6 @@ export class kpiReasonController extends Controller {
|
|||
relations: [
|
||||
"kpiUserCapacity",
|
||||
"kpiUserCapacity.kpiUserEvaluation",
|
||||
"kpiUserCapacity.kpiUserEvaluation.evaluatorId",
|
||||
],
|
||||
});
|
||||
if (!kpiReason) {
|
||||
|
|
@ -809,7 +801,6 @@ export class kpiReasonController extends Controller {
|
|||
relations: [
|
||||
"kpiUserCapacity",
|
||||
"kpiUserCapacity.kpiUserEvaluation",
|
||||
"kpiUserCapacity.kpiUserEvaluation.evaluatorId",
|
||||
],
|
||||
});
|
||||
if (!kpiReason) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue