From ac165df0e94288013ac2abd9c595a90ad0d2c158 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 30 Jan 2025 12:37:47 +0530 Subject: [PATCH] fix: only set caller once --- crm/integrations/exotel/handler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/crm/integrations/exotel/handler.py b/crm/integrations/exotel/handler.py index 3d319fc4..8809be6a 100644 --- a/crm/integrations/exotel/handler.py +++ b/crm/integrations/exotel/handler.py @@ -278,8 +278,6 @@ def update_call_log(call_payload, status="Ringing", call_log=None): if direction == "incoming" and call_payload.get("AgentEmail"): call_log.receiver = call_payload.get("AgentEmail") - else: - call_log.caller = frappe.session.user call_log.save(ignore_permissions=True) frappe.db.commit()