Ateração para corrigir erro undefined no pageNumber

pull/21/head
adriano 2022-12-21 11:09:57 -03:00
parent 2c8a901af3
commit 46da991216
2 changed files with 3 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export const index = async (req: Request, res: Response): Promise<Response> => {
console.log('PAGE NUMBER CONTACT: ', pageNumber)
if (pageNumber.trim().length == 0 || pageNumber === undefined) {
if ( pageNumber === undefined || pageNumber.trim().length == 0) {
pageNumber = '1'
}

View File

@ -38,7 +38,8 @@ const SendWhatsAppMessage = async ({
quotedMsg
}: Request): Promise<WbotMessage> => {
var timetaken = `######################################## TicketId: ${ticket.id} => Time taken to send the message`;
let timestamp = Math.floor(Date.now() / 1000)
var timetaken = `########################################${timestamp}| TicketId: ${ticket.id} => Time taken to send the message`;
console.time(timetaken)