Merge pull request #12427 from rohitwaghchaure/ignore-notify-update-in-patch
perf: Ignore notify update in patch execution
This commit is contained in:
commit
db88902a70
1 changed files with 2 additions and 0 deletions
|
|
@ -1015,6 +1015,8 @@ class Document(BaseDocument):
|
|||
|
||||
def notify_update(self):
|
||||
"""Publish realtime that the current document is modified"""
|
||||
if frappe.flags.in_patch: return
|
||||
|
||||
frappe.publish_realtime("doc_update", {"modified": self.modified, "doctype": self.doctype, "name": self.name},
|
||||
doctype=self.doctype, docname=self.name, after_commit=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue