chore: remove unused cache=True

(cherry picked from commit 6a47a2ceaf)
This commit is contained in:
Ankush Menat
2023-12-06 20:53:55 +05:30
parent c2a137f0fb
commit 4e6b8ead8f

View File

@@ -78,6 +78,6 @@ def update_page_info(bootinfo):
def bootinfo(bootinfo):
if bootinfo.get("user") and bootinfo["user"].get("name"):
bootinfo["user"]["employee"] = ""
employee = frappe.db.get_value("Employee", {"user_id": bootinfo["user"]["name"]}, "name", cache=True)
employee = frappe.db.get_value("Employee", {"user_id": bootinfo["user"]["name"]}, "name")
if employee:
bootinfo["user"]["employee"] = employee