Merge branch 'master' into queue

This commit is contained in:
Cassio Santos
2021-01-14 08:03:40 -03:00
committed by GitHub
6 changed files with 31 additions and 29 deletions

View File

@@ -30,7 +30,7 @@ export const index = async (req: Request, res: Response): Promise<Response> => {
ticketId
});
await SetTicketMessagesAsRead(ticket);
SetTicketMessagesAsRead(ticket);
return res.json({ count, messages, ticket, hasMore });
};
@@ -42,7 +42,7 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
const ticket = await ShowTicketService(ticketId);
await SetTicketMessagesAsRead(ticket);
SetTicketMessagesAsRead(ticket);
if (medias) {
await Promise.all(