From 856308e093c537747aea928133a8cf210389673c Mon Sep 17 00:00:00 2001 From: canove Date: Sun, 27 Sep 2020 09:06:05 -0300 Subject: [PATCH] fix: ticket status not updating on "search tab" --- backend/src/controllers/TicketController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/controllers/TicketController.ts b/backend/src/controllers/TicketController.ts index f87726b..f28e463 100644 --- a/backend/src/controllers/TicketController.ts +++ b/backend/src/controllers/TicketController.ts @@ -81,7 +81,7 @@ export const update = async ( }); } - io.to(ticket.status).to(ticketId).emit("ticket", { + io.to(ticket.status).to("notification").to(ticketId).emit("ticket", { action: "updateStatus", ticket, user: ticketUser