fix: bug ignored wrong number connected in the application
parent
2fc732eec1
commit
8e24f37219
|
@ -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: ",
|
||||||
|
|
Loading…
Reference in New Issue