Update unhandled_email.py
This commit is contained in:
parent
83c10c9263
commit
cef8f4d450
1 changed files with 1 additions and 1 deletions
|
|
@ -11,4 +11,4 @@ class UnhandledEmail(Document):
|
|||
|
||||
|
||||
def remove_old_unhandled_emails():
|
||||
frappe.db.sql("""DELETE FROM `tabUnhandled Email` WHERE datediff(curdate(), date(creation)) > 30""")
|
||||
frappe.db.sql("""DELETE FROM `tabUnhandled Email` WHERE DATEDIFF(CURRENT_DATE(), DATE(creation)) > 30""")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue