feat: finished queue filter on tickets list

This commit is contained in:
canove
2021-01-13 19:43:50 -03:00
parent c61c993572
commit 2c2a39ee1f
6 changed files with 124 additions and 134 deletions

View File

@@ -63,7 +63,7 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
const io = getIO();
io.to(ticket.status).emit("ticket", {
action: "create",
action: "update",
ticket
});
@@ -100,7 +100,7 @@ export const update = async (
}
io.to(ticket.status).to("notification").to(ticketId).emit("ticket", {
action: "updateStatus",
action: "update",
ticket
});