Skip to content

Commit

Permalink
fix: return full_name for lead
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Jan 19, 2025
1 parent c6c0ef8 commit 9c80041
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crm/integrations/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 9c80041

Please sign in to comment.