add noti
This commit is contained in:
parent
049a0299de
commit
6a56bb40ae
1 changed files with 5 additions and 4 deletions
|
|
@ -172,9 +172,10 @@ export class WorkflowController extends Controller {
|
|||
let profileNow = _workflow.stateOperatorUsers
|
||||
.filter((x) => _state.stateOperators.map((s) => s.operator).includes(x.operator))
|
||||
.map((x) => ({
|
||||
receiverUserId: x.profile,
|
||||
receiverUserId: x.profileId,
|
||||
notiLink: "",
|
||||
}));
|
||||
console.log(profileNow);
|
||||
await new CallAPI()
|
||||
.PostData(req, "/placement/noti/profiles", {
|
||||
subject: `รายการถูกส่ง`,
|
||||
|
|
@ -452,7 +453,7 @@ export class WorkflowController extends Controller {
|
|||
let profileNow = workflow.stateOperatorUsers
|
||||
.filter((x) => state.stateOperators.map((s) => s.operator).includes(x.operator))
|
||||
.map((x) => ({
|
||||
receiverUserId: x.profile,
|
||||
receiverUserId: x.profileId,
|
||||
notiLink: "",
|
||||
}));
|
||||
await new CallAPI()
|
||||
|
|
@ -472,7 +473,7 @@ export class WorkflowController extends Controller {
|
|||
let profileNext = workflow.stateOperatorUsers
|
||||
.filter((x) => _state.stateOperators.map((s) => s.operator).includes(x.operator))
|
||||
.map((x) => ({
|
||||
receiverUserId: x.profile,
|
||||
receiverUserId: x.profileId,
|
||||
notiLink: "",
|
||||
}));
|
||||
await new CallAPI()
|
||||
|
|
@ -632,7 +633,7 @@ export class WorkflowController extends Controller {
|
|||
stateUserComment.state.stateOperators.map((s) => s.operator).includes(x.operator),
|
||||
)
|
||||
.map((x) => ({
|
||||
receiverUserId: x.profile,
|
||||
receiverUserId: x.profileId,
|
||||
notiLink: "",
|
||||
}));
|
||||
await new CallAPI()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue