perf: Skip fetching non-existing call log (#47930)

This commit is contained in:
Ankush Menat
2025-06-06 12:43:44 +05:30
committed by GitHub
parent abad8050a3
commit 7bddd64771

View File

@@ -202,6 +202,8 @@ def get_linked_call_logs(doctype, docname):
fields=["parent"],
filters={"parenttype": "Call Log", "link_doctype": doctype, "link_name": docname},
)
if not logs:
return []
logs = {log.parent for log in logs}