refactor: update scheduled job for bulk transaction

This commit is contained in:
ruthra kumar
2023-11-20 13:26:02 +05:30
parent a5a5341643
commit fb06ad7330
2 changed files with 5 additions and 2 deletions

View File

@@ -30,7 +30,10 @@ def transaction_processing(data, from_doctype, to_doctype):
@frappe.whitelist()
def retry(date: str | None):
def retry(date: str | None = None):
if not date:
date = today()
if date:
failed_docs = frappe.db.get_all(
"Bulk Transaction Log Detail",