chore: remove unused cache=True

This commit is contained in:
Ankush Menat 2023-12-06 20:53:55 +05:30
parent 525f656cc1
commit 6a47a2ceaf

View File

@ -80,6 +80,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