fix: automações (gatilhos, histórico) e chat desktop

This commit is contained in:
esdrasrenan 2025-12-13 11:26:42 -03:00
parent 8ab510bfe9
commit e4d0c95791
7 changed files with 670 additions and 53 deletions

View file

@ -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",
})
},
});