From 5e0402699be971ea1b1e8db01873696d501a8ea2 Mon Sep 17 00:00:00 2001 From: adriano Date: Thu, 10 Apr 2025 12:24:12 -0300 Subject: [PATCH] chore: Return 200 on route response --- backend/controllers/crmController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/controllers/crmController.js b/backend/controllers/crmController.js index 957271b..5769bc8 100644 --- a/backend/controllers/crmController.js +++ b/backend/controllers/crmController.js @@ -495,7 +495,9 @@ const webhook_crm = async (req, res) => { }) console.log('==========> crm whoId: ', whoId) - console.log('==========> crm contact: ', contact) + console.log('==========> crm contact: ', contact) + + if(!contact) return res.send() const { phone } = contact