We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f72dcef commit b4cc4eaCopy full SHA for b4cc4ea
frappe_gmail_thread/frappe_gmail_thread/doctype/gmail_thread/gmail_thread.py
@@ -91,7 +91,7 @@ def before_save(self):
91
92
93
@frappe.whitelist(methods=["POST"])
94
-def sync_labels(account_name: str, should_save: bool = True):
+def sync_labels(account_name: str | object, should_save: bool = True):
95
if isinstance(account_name, str):
96
gmail_account = frappe.get_doc("Gmail Account", account_name)
97
else:
0 commit comments