fix: Updated value of _seen in db while resetting _seen

This commit is contained in:
Suraj Shetty 2020-03-18 16:30:53 +05:30
parent b587031d60
commit b9bb6e6513

View file

@ -978,7 +978,7 @@ class Document(BaseDocument):
def reset_seen(self):
"""Clear _seen property and set current user as seen"""
if getattr(self.meta, 'track_seen', False):
self._seen = json.dumps([frappe.session.user])
self.db_set('_seen', json.dumps([frappe.session.user]), update_modified=False)
def notify_update(self):
"""Publish realtime that the current document is modified"""