fix: bug ignored wrong number connected in the application

feat-scaling-ticket-remote-creation
adriano 2024-03-07 09:43:04 -03:00
parent 2fc732eec1
commit 8e24f37219
1 changed files with 2 additions and 2 deletions

View File

@ -230,9 +230,9 @@ export const weebhook = async (
req.body.entry[0].changes[0].value.metadata.display_phone_number; req.body.entry[0].changes[0].value.metadata.display_phone_number;
let type = message.type; let type = message.type;
const contact_from_exist = await get("whatsapp:*", `${contact_from}`); const contact_to_exist = await get("whatsapp:*", `${contact_to}`);
if (!contact_from_exist) { if (contact_to_exist == null) {
console.log( console.log(
"WHATSAPP OFFICIAL", "WHATSAPP OFFICIAL",
" | CONCTACT_FROM: ", " | CONCTACT_FROM: ",