Correção de bug quando o usuario clicar no botao retornar o atendimento para a fila
parent
8b370e01f6
commit
55e83ff8fc
|
@ -146,7 +146,7 @@ export const show = async (req: Request, res: Response): Promise<Response> => {
|
||||||
export const count = async (req: Request, res: Response): Promise<Response> => {
|
export const count = async (req: Request, res: Response): Promise<Response> => {
|
||||||
|
|
||||||
type indexQ = { status: string; date?: string; };
|
type indexQ = { status: string; date?: string; };
|
||||||
const {status, date} = req.query as IndexQuery
|
const { status, date } = req.query as IndexQuery
|
||||||
|
|
||||||
const ticketCount = await CountTicketService(status, date);
|
const ticketCount = await CountTicketService(status, date);
|
||||||
|
|
||||||
|
@ -237,8 +237,12 @@ export const update = async (req: Request, res: Response): Promise<Response> =>
|
||||||
ticketId
|
ticketId
|
||||||
});
|
});
|
||||||
|
|
||||||
const dateToday = splitDateTime(new Date(format(new Date(), 'yyyy-MM-dd HH:mm:ss', { locale: ptBR })))
|
if (ticketData.userId) {
|
||||||
TicketEmiterSumOpenClosedByUser(ticketData.userId.toString(), dateToday.fullDate, dateToday.fullDate)
|
|
||||||
|
const dateToday = splitDateTime(new Date(format(new Date(), 'yyyy-MM-dd HH:mm:ss', { locale: ptBR })))
|
||||||
|
TicketEmiterSumOpenClosedByUser(ticketData.userId.toString(), dateToday.fullDate, dateToday.fullDate)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
ticket2 = ticket
|
ticket2 = ticket
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue