update
This commit is contained in:
parent
ee5451566d
commit
7bdecb7205
1 changed files with 18 additions and 0 deletions
|
|
@ -1158,6 +1158,24 @@ export class KpiUserEvaluationController extends Controller {
|
|||
})
|
||||
.then(() => {})
|
||||
.catch(() => {});
|
||||
} else if (requestBody.status.trim().toUpperCase() == "APPROVE") { // ทุกขั้นอนุมัติแล้วส่งกลับไปหาผู้ขอประเมินเพื่อส่งขอทำการประเมินต่อ
|
||||
await new CallAPI()
|
||||
.PostData(request, "/placement/noti/profiles", {
|
||||
subject: `ผู้ประเมินและผู้บังคับบัญชาอนุมัติข้อตกลงการประเมินผลฯ สามารถดำเนินการขั้นตอนต่อไปได้`,
|
||||
body: `ผู้ประเมินและผู้บังคับบัญชาอนุมัติข้อตกลงการประเมินผลฯ สามารถดำเนินการขั้นตอนต่อไปได้`,
|
||||
receiverUserIds: [
|
||||
{
|
||||
receiverUserId: kpiUserEvaluation.evaluatorId,
|
||||
notiLink: `${process.env.USER_NOTI_URL}/KPI-evaluator/${kpiUserEvaluation.id}`,
|
||||
},
|
||||
],
|
||||
payload: "",
|
||||
isSendMail: true,
|
||||
isSendInbox: true,
|
||||
isSendNotification: true,
|
||||
})
|
||||
.then(() => {})
|
||||
.catch(() => {});
|
||||
}
|
||||
const before = structuredClone(kpiUserEvaluation);
|
||||
let _null: any = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue