fix: prevent unnecessary db.commit for contact insert [Linters]

(cherry picked from commit 87de5c7450)
This commit is contained in:
HarryPaulo
2025-01-16 17:51:22 -03:00
committed by Mergify
parent 00d39eb208
commit 5cfeb2978b

View File

@@ -185,7 +185,7 @@ def link_existing_conversations(doc, state):
""",
dict(phone_number=f"%{number}", docname=doc.name, doctype=doc.doctype),
)
if logs:
if logs:
for log in logs:
call_log = frappe.get_doc("Call Log", log)
call_log.add_link(link_type=doc.doctype, link_name=doc.name)