Remoção de console.log

pull/21/head
adriano 2023-04-08 19:38:16 -03:00
parent 10baa9de05
commit 79755d8c52
2 changed files with 1 additions and 7 deletions

View File

@ -4,7 +4,6 @@ import Ticket from "../models/Ticket";
function sendWhatsAppMessageSocket(ticket: Ticket, body: string, quotedMsgSerializedId?: string | undefined) { function sendWhatsAppMessageSocket(ticket: Ticket, body: string, quotedMsgSerializedId?: string | undefined) {
const io = getIO(); const io = getIO();
io.to(`session_${ticket.whatsappId.toString()}`).emit("send_message", { io.to(`session_${ticket.whatsappId.toString()}`).emit("send_message", {

View File

@ -558,12 +558,7 @@ const handleMessage = async (
await ticket.update({ whatsappId: wbot.id }); await ticket.update({ whatsappId: wbot.id });
} }
// //
if(msg.fromMe){
console.log('====> msg.fromMe: ',msg.fromMe)
}
if (msg.hasMedia) { if (msg.hasMedia) {
await verifyMediaMessage(msg, ticket, contact, wbot.media, wbot.quotedMsg); await verifyMediaMessage(msg, ticket, contact, wbot.media, wbot.quotedMsg);