mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 11:49:19 +00:00
fix: remove ticket from all users when deleted
This commit is contained in:
@@ -81,7 +81,7 @@ export const update = async (
|
||||
});
|
||||
}
|
||||
|
||||
io.to(ticket.status).emit("ticket", {
|
||||
io.to(ticket.status).to(ticketId).emit("ticket", {
|
||||
action: "updateStatus",
|
||||
ticket
|
||||
});
|
||||
@@ -99,7 +99,7 @@ export const remove = async (
|
||||
|
||||
const io = getIO();
|
||||
io.to(ticket.status)
|
||||
.to("notification")
|
||||
.to(ticketId)
|
||||
.emit("ticket", {
|
||||
action: "delete",
|
||||
ticketId: +ticketId
|
||||
|
||||
Reference in New Issue
Block a user