fix: Don't assume async value == True
fix: Don't assume async value == True
This commit is contained in:
commit
c19befeb5b
1 changed files with 1 additions and 3 deletions
|
|
@ -36,9 +36,7 @@ def enqueue(method, queue='default', timeout=None, event=None,
|
|||
:param kwargs: keyword arguments to be passed to the method
|
||||
'''
|
||||
# To handle older implementations
|
||||
if 'async' in kwargs:
|
||||
is_async = True
|
||||
del kwargs['async']
|
||||
is_async = kwargs.pop('async', is_async)
|
||||
|
||||
if now or frappe.flags.in_migrate:
|
||||
return frappe.call(method, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue