Compare commits

..

No commits in common. "51fd8b4232ba182fa9b4ae84d1c28398effc3ba5" and "5a8cf94c3e4a5766bd17d8d02f6c54101c70950c" have entirely different histories.

2 changed files with 2 additions and 10 deletions

View File

@ -118,7 +118,7 @@ export const index = async (req: Request, res: Response): Promise<Response> => {
return res return res
.status(200) .status(200)
.json({ tickets, count, hasMore, remoteTicketsControll, pageNumber }); .json({ tickets, count, hasMore, remoteTicketsControll });
}; };
export const remoteTicketCreation = async ( export const remoteTicketCreation = async (
@ -380,14 +380,6 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
}); });
} }
const queueQuery: any = await Queue.findOne({
where: { id: queueId },
attributes: ["id", "name", "color"],
raw: true
});
ticket.dataValues.queue = queueQuery
const io = getIO(); const io = getIO();
io.to(ticket.status).emit("ticket", { io.to(ticket.status).emit("ticket", {
action: "update", action: "update",

View File

@ -19,7 +19,7 @@ const clientExistsCache = cache<boolean>(CLIENT_EXISTS_CACHE_TTL);
export const clientExists = async (id: string): Promise<boolean> => { export const clientExists = async (id: string): Promise<boolean> => {
const fetcher = async (id: string) => { const fetcher = async (id: string) => {
const response = await fetchWithKey(`/tenants/${id}`, { method: "HEAD" }); const response = await fetchWithKey(`/clients/${id}`, { method: "HEAD" });
await responseOk(response); await responseOk(response);