From 9e156efe9be068c741a0d4861097f23ac3012094 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Sat, 28 Sep 2024 15:25:22 +0530 Subject: [PATCH] fix: mark all as read not working --- crm/api/notifications.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crm/api/notifications.py b/crm/api/notifications.py index 972fa58e..2067b8f0 100644 --- a/crm/api/notifications.py +++ b/crm/api/notifications.py @@ -48,6 +48,7 @@ def get_notifications(): def mark_as_read(user=None, doc=None): user = user or frappe.session.user filters = {"to_user": user, "read": False} + or_filters = [] if doc: or_filters = [ {"comment": doc},