Comentário de console.log
parent
53d3b2b09e
commit
e7eb700fb2
|
@ -8,7 +8,7 @@ async function whatsappQueueMatchingUserQueue(userId: number, whatsapp: Whatsapp
|
||||||
|
|
||||||
if (!userQueues || userQueues && userQueues.length == 0) return
|
if (!userQueues || userQueues && userQueues.length == 0) return
|
||||||
|
|
||||||
console.log('-----> userQueues: ', userQueues);
|
// console.log('-----> userQueues: ', userQueues);
|
||||||
|
|
||||||
let whats: any = await ShowWhatsAppService(whatsapp.id);
|
let whats: any = await ShowWhatsAppService(whatsapp.id);
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ async function whatsappQueueMatchingUserQueue(userId: number, whatsapp: Whatsapp
|
||||||
|
|
||||||
const whatsappQueues = whats.queues.map((e: any) => e.dataValues.name);
|
const whatsappQueues = whats.queues.map((e: any) => e.dataValues.name);
|
||||||
|
|
||||||
console.log('-----> whatsappQueues: ', whatsappQueues);
|
// console.log('-----> whatsappQueues: ', whatsappQueues);
|
||||||
|
|
||||||
const matchingQueue = userQueues.find(queue => whatsappQueues.includes(queue.name));
|
const matchingQueue = userQueues.find(queue => whatsappQueues.includes(queue.name));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue