From 9c800417bb969f6ac5df0fe39faed39cd120fee0 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sun, 19 Jan 2025 22:16:51 +0530 Subject: [PATCH] fix: return full_name for lead --- crm/integrations/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crm/integrations/api.py b/crm/integrations/api.py index 7bb15f898..b440e629c 100644 --- a/crm/integrations/api.py +++ b/crm/integrations/api.py @@ -161,6 +161,7 @@ def get_contact(phone_number, exact_match=False): for lead in leads: if are_same_phone_number(lead.mobile_no, phone_number, validate=not exact_match): lead["lead"] = lead.name + lead["full_name"] = lead.lead_name return lead return {"mobile_no": phone_number}