fix: Updated value of _seen in db while resetting _seen
This commit is contained in:
parent
b587031d60
commit
b9bb6e6513
1 changed files with 1 additions and 1 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue