Compare commits
3 Commits
5a8cf94c3e
...
51fd8b4232
Author | SHA1 | Date |
---|---|---|
gustavo-gsp | 51fd8b4232 | |
gustavo-gsp | b5f9fbc558 | |
gustavo-gsp | c3452c72d7 |
|
@ -118,7 +118,7 @@ export const index = async (req: Request, res: Response): Promise<Response> => {
|
|||
|
||||
return res
|
||||
.status(200)
|
||||
.json({ tickets, count, hasMore, remoteTicketsControll });
|
||||
.json({ tickets, count, hasMore, remoteTicketsControll, pageNumber });
|
||||
};
|
||||
|
||||
export const remoteTicketCreation = async (
|
||||
|
@ -380,6 +380,14 @@ 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();
|
||||
io.to(ticket.status).emit("ticket", {
|
||||
action: "update",
|
||||
|
|
|
@ -19,7 +19,7 @@ const clientExistsCache = cache<boolean>(CLIENT_EXISTS_CACHE_TTL);
|
|||
|
||||
export const clientExists = async (id: string): Promise<boolean> => {
|
||||
const fetcher = async (id: string) => {
|
||||
const response = await fetchWithKey(`/clients/${id}`, { method: "HEAD" });
|
||||
const response = await fetchWithKey(`/tenants/${id}`, { method: "HEAD" });
|
||||
|
||||
await responseOk(response);
|
||||
|
||||
|
|
Loading…
Reference in New Issue