Correção do undefined na abertura do Ticket

pull/1/head
adriano 2022-05-16 13:11:19 -03:00
parent c6d6ec2103
commit 8924e2a8e0
1 changed files with 4 additions and 1 deletions

View File

@ -225,7 +225,10 @@ export const update = async ( req: Request, res: Response ): Promise<Response> =
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 })))
if(userOldInfo.userId){
TicketEmiterSumOpenClosedByUser(userOldInfo.userId.toString(), dateToday.fullDate, dateToday.fullDate) TicketEmiterSumOpenClosedByUser(userOldInfo.userId.toString(), dateToday.fullDate, dateToday.fullDate)
}
} }