Exibindo console para rastrear problema

pull/21/head
adriano 2023-05-19 10:50:54 -03:00
parent 7a8518c77f
commit 4aa90698f1
2 changed files with 8 additions and 2 deletions

View File

@ -20,7 +20,7 @@ interface Request {
const CreateMessageService = async ({ messageData }: Request): Promise<Message> => {
// console.log('UPSERT MESSAGE messageData: ', messageData)
console.log('UPSERT MESSAGE messageData: ', messageData)
try {

View File

@ -430,7 +430,7 @@ const handleMessage = async (
if (index == -1) {
// console.log('-----------------> LST: ', lst)
console.log('-----------------> LST: ', lst)
lst.push({ id: msg.id.id })
@ -503,6 +503,12 @@ const handleMessage = async (
// const chat = await msg.getChat();
const chat = wbot.chat
// if(chat.isGroup){
// console.log('This message is from a Group and will be ignored!')
// return
// }
// console.log('----------> chat: ', JSON.parse(JSON.stringify(chat)))
// if (chat.isGroup) {