Correção de bug quando o usuario clicar no botao retornar o atendimento para a fila

pull/20/head
adriano 2022-09-05 13:36:42 -03:00
parent 8b370e01f6
commit 55e83ff8fc
1 changed files with 18 additions and 14 deletions

View File

@ -237,9 +237,13 @@ export const update = async (req: Request, res: Response): Promise<Response> =>
ticketId ticketId
}); });
if (ticketData.userId) {
const dateToday = splitDateTime(new Date(format(new Date(), 'yyyy-MM-dd HH:mm:ss', { locale: ptBR }))) const dateToday = splitDateTime(new Date(format(new Date(), 'yyyy-MM-dd HH:mm:ss', { locale: ptBR })))
TicketEmiterSumOpenClosedByUser(ticketData.userId.toString(), dateToday.fullDate, dateToday.fullDate) TicketEmiterSumOpenClosedByUser(ticketData.userId.toString(), dateToday.fullDate, dateToday.fullDate)
}
ticket2 = ticket ticket2 = ticket
} }