fix: clear notifications cache when deleting a Notification

This commit is contained in:
Sagar Vora 2022-08-05 16:08:02 +05:30
parent 2866721a78
commit c5face41b3

View file

@ -387,6 +387,9 @@ def get_context(context):
if not is_html(self.message):
self.message = frappe.utils.md_to_html(self.message)
def on_trash(self):
frappe.cache().hdel("notifications", self.document_type)
@frappe.whitelist()
def get_documents_for_today(notification):