fix: automações (gatilhos, histórico) e chat desktop
This commit is contained in:
parent
8ab510bfe9
commit
e4d0c95791
7 changed files with 670 additions and 53 deletions
|
|
@ -3930,6 +3930,12 @@ export const changeQueue = mutation({
|
|||
payload: { queueId, queueName, actorId },
|
||||
createdAt: now,
|
||||
})
|
||||
|
||||
await runTicketAutomationsForEvent(ctx, {
|
||||
tenantId: ticketDoc.tenantId,
|
||||
ticketId,
|
||||
eventType: "QUEUE_CHANGED",
|
||||
})
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -4081,6 +4087,12 @@ export const updatePriority = mutation({
|
|||
payload: { to: priority, toLabel: pt[priority] ?? priority, actorId },
|
||||
createdAt: now,
|
||||
});
|
||||
|
||||
await runTicketAutomationsForEvent(ctx, {
|
||||
tenantId: ticket.tenantId,
|
||||
ticketId,
|
||||
eventType: "PRIORITY_CHANGED",
|
||||
})
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue