fix noti
This commit is contained in:
parent
f4e8ec277e
commit
e89bc1b075
1 changed files with 5 additions and 5 deletions
|
|
@ -549,8 +549,8 @@ export class WorkflowController extends Controller {
|
|||
}));
|
||||
await new CallAPI()
|
||||
.PostData(req, "/placement/noti/profiles", {
|
||||
subject: `ได้รับรายการ`,
|
||||
body: `ได้รับรายการ`,
|
||||
subject: `ได้รับรายการ ${workflow.name}`,
|
||||
body: `ได้รับรายการ ${workflow.name}`,
|
||||
receiverUserIds: profileNext,
|
||||
payload: "", //แนบไฟล์
|
||||
isSendMail: true,
|
||||
|
|
@ -653,12 +653,12 @@ export class WorkflowController extends Controller {
|
|||
if (!assign) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลขั้นตอนการอนุมัติ");
|
||||
await new CallAPI()
|
||||
.PostData(req, "/placement/noti/profiles", {
|
||||
subject: `ได้รับรายการ`,
|
||||
body: `ได้รับรายการ`,
|
||||
subject: `ได้รับรายการ ${state.workflow.name}`,
|
||||
body: `ได้รับรายการ ${state.workflow.name}`,
|
||||
receiverUserIds: [
|
||||
{
|
||||
receiverUserId: body.profileId,
|
||||
notiLink: `${assign.path}/${state.workflow.refId}`,
|
||||
notiLink: `${process.env.VITE_URL_SSO}/${assign.path}/${state.workflow.refId}`,
|
||||
},
|
||||
],
|
||||
payload: "", //แนบไฟล์
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue