diff --git a/backend/src/controllers/TicketController.ts b/backend/src/controllers/TicketController.ts index a54ed06..d697b63 100644 --- a/backend/src/controllers/TicketController.ts +++ b/backend/src/controllers/TicketController.ts @@ -380,6 +380,14 @@ export const store = async (req: Request, res: Response): Promise => { }); } + const queueQuery: any = await Queue.findOne({ + where: { id: queueId }, + attributes: ["id", "name", "color"], + raw: true + }); + + ticket.dataValues.queue = queueQuery + const io = getIO(); io.to(ticket.status).emit("ticket", { action: "update",