refactor: prevent permissions by always processing in background

This commit is contained in:
ruthra kumar 2024-01-05 14:32:05 +05:30
parent 351ee5b8fe
commit 15dc5c7e99

View File

@ -15,7 +15,6 @@ def transaction_processing(data, from_doctype, to_doctype):
length_of_data = len(deserialized_data) length_of_data = len(deserialized_data)
if length_of_data > 10:
frappe.msgprint( frappe.msgprint(
_("Started a background job to create {1} {0}").format(to_doctype, length_of_data) _("Started a background job to create {1} {0}").format(to_doctype, length_of_data)
) )
@ -25,8 +24,6 @@ def transaction_processing(data, from_doctype, to_doctype):
from_doctype=from_doctype, from_doctype=from_doctype,
to_doctype=to_doctype, to_doctype=to_doctype,
) )
else:
job(deserialized_data, from_doctype, to_doctype)
@frappe.whitelist() @frappe.whitelist()