fix: deleting a ticket with unreadMessages keeps ticket in notifications

This commit is contained in:
canove
2020-09-29 06:20:16 -03:00
parent c36096c4b9
commit d78df2bf2e
2 changed files with 3 additions and 2 deletions

View File

@@ -101,6 +101,7 @@ export const remove = async (
const io = getIO();
io.to(ticket.status)
.to(ticketId)
.to("notification")
.emit("ticket", {
action: "delete",
ticketId: +ticketId