fix: frappe.local has not _realtime_log (#33236)
This commit is contained in:
parent
8978d24f9d
commit
38c64da0d6
1 changed files with 2 additions and 0 deletions
|
|
@ -84,6 +84,8 @@ def publish_realtime(
|
|||
|
||||
|
||||
def flush_realtime_log():
|
||||
if not hasattr(frappe.local, "_realtime_log"):
|
||||
return
|
||||
for args in frappe.local._realtime_log:
|
||||
frappe.realtime.emit_via_redis(*args)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue