fix
This commit is contained in:
parent
022d88068b
commit
536572d0e7
1 changed files with 15 additions and 9 deletions
|
|
@ -1790,19 +1790,22 @@ export class EvaluationController {
|
||||||
await this.evaluationRepository.save(evaluation, { data: request });
|
await this.evaluationRepository.save(evaluation, { data: request });
|
||||||
setLogDataDiff(request, { before, after: evaluation });
|
setLogDataDiff(request, { before, after: evaluation });
|
||||||
|
|
||||||
// const _director = await new CallAPI()
|
let _director: any;
|
||||||
// .PostData(request, "/org/workflow/find/director/SYS_EVA_REQ", {
|
await new CallAPI()
|
||||||
// refId: [evaluation.userId],
|
.PostData(request, "/org/workflow/find/director-with-keycloak/SYS_EVA_REQ", {
|
||||||
// })
|
refId: [evaluation.userId],
|
||||||
// .then((x) => {})
|
})
|
||||||
// .catch((x) => {});
|
.then((x) => {
|
||||||
// console.log("_director>>",_director);
|
_director = x;
|
||||||
|
})
|
||||||
|
.catch((x) => {});
|
||||||
|
|
||||||
|
|
||||||
await new CallAPI()
|
await new CallAPI()
|
||||||
.PostData(request, "/placement/noti/keycloak", {
|
.PostData(request, "/placement/noti/keycloak", {
|
||||||
subject: `${evaluation.fullName} แบบประเมินมีการบันทึกตรวจสอบจัดเตรียมเอกสารเล่ม 1`,
|
subject: `${evaluation.fullName} แบบประเมินมีการบันทึกตรวจสอบจัดเตรียมเอกสารเล่ม 1`,
|
||||||
body: `${evaluation.fullName} แบบประเมินมีการบันทึกตรวจสอบจัดเตรียมเอกสารเล่ม 1`,
|
body: `${evaluation.fullName} แบบประเมินมีการบันทึกตรวจสอบจัดเตรียมเอกสารเล่ม 1`,
|
||||||
receiverUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
|
receiverUserId: _director.id,
|
||||||
payload: "",
|
payload: "",
|
||||||
isSendMail: true,
|
isSendMail: true,
|
||||||
isSendInbox: true,
|
isSendInbox: true,
|
||||||
|
|
@ -1810,6 +1813,7 @@ export class EvaluationController {
|
||||||
})
|
})
|
||||||
.then((x) => {})
|
.then((x) => {})
|
||||||
.catch((x) => {});
|
.catch((x) => {});
|
||||||
|
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
if (error instanceof HttpError) {
|
if (error instanceof HttpError) {
|
||||||
|
|
@ -2837,6 +2841,7 @@ export class EvaluationController {
|
||||||
"commanderAbovePositionDoc2",
|
"commanderAbovePositionDoc2",
|
||||||
"commanderAbovePositionOldDoc2",
|
"commanderAbovePositionOldDoc2",
|
||||||
"evaluationResult",
|
"evaluationResult",
|
||||||
|
"isUpdated",
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
if (!evaluation) {
|
if (!evaluation) {
|
||||||
|
|
@ -2880,6 +2885,7 @@ export class EvaluationController {
|
||||||
"commanderAbovePositionDoc2",
|
"commanderAbovePositionDoc2",
|
||||||
"commanderAbovePositionOldDoc2",
|
"commanderAbovePositionOldDoc2",
|
||||||
"evaluationResult",
|
"evaluationResult",
|
||||||
|
"isUpdated",
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
if (!evaluation) {
|
if (!evaluation) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue