Ateração para corrigir erro undefined no pageNumber
parent
2c8a901af3
commit
46da991216
|
@ -41,7 +41,7 @@ export const index = async (req: Request, res: Response): Promise<Response> => {
|
||||||
|
|
||||||
console.log('PAGE NUMBER CONTACT: ', pageNumber)
|
console.log('PAGE NUMBER CONTACT: ', pageNumber)
|
||||||
|
|
||||||
if (pageNumber.trim().length == 0 || pageNumber === undefined) {
|
if ( pageNumber === undefined || pageNumber.trim().length == 0) {
|
||||||
pageNumber = '1'
|
pageNumber = '1'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,8 @@ const SendWhatsAppMessage = async ({
|
||||||
quotedMsg
|
quotedMsg
|
||||||
}: Request): Promise<WbotMessage> => {
|
}: 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)
|
console.time(timetaken)
|
||||||
|
|
Loading…
Reference in New Issue