This commit is contained in:
AdisakKanthawilang 2025-04-22 17:26:47 +07:00
parent 14f3a90d9b
commit 3b2c5f2cfd
2 changed files with 20 additions and 17 deletions

View file

@ -1800,20 +1800,23 @@ export class EvaluationController {
})
.catch((x) => {});
await new CallAPI()
.PostData(request, "/placement/noti/keycloak", {
subject: `${evaluation.fullName} แบบประเมินมีการบันทึกตรวจสอบจัดเตรียมเอกสารเล่ม 1`,
body: `${evaluation.fullName} แบบประเมินมีการบันทึกตรวจสอบจัดเตรียมเอกสารเล่ม 1`,
receiverUserId: "59134ef9-9e62-41d0-aac5-339be727f2b0",
payload: "",
isSendMail: true,
isSendInbox: true,
isSendNotification: true,
await Promise.all(
_director.map((director:any) => {
return new CallAPI()
.PostData(request, "/placement/noti/keycloak", {
subject: `${evaluation.fullName} แบบประเมินมีการบันทึกตรวจสอบจัดเตรียมเอกสารเล่ม 1`,
body: `${evaluation.fullName} แบบประเมินมีการบันทึกตรวจสอบจัดเตรียมเอกสารเล่ม 1`,
receiverUserId: director.id,
payload: "",
isSendMail: true,
isSendInbox: true,
isSendNotification: true,
})
.then((x) => {})
.catch((x) => {});
})
.then((x) => {})
.catch((x) => {});
);
return new HttpSuccess();
} catch (error: any) {
if (error instanceof HttpError) {