chore: rename entry point

This commit is contained in:
ruthra kumar
2024-03-20 14:10:08 +05:30
parent 3cec62d4f8
commit 5fe0b20be1
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ frappe.ui.form.on("Transaction Deletion Record", {
frm.add_custom_button(execute_btn, () => {
// Entry point for chain of events
frm.call({
method: "process_tasks",
method: "start_deletion_tasks",
doc: frm.doc,
});
});

View File

@@ -198,7 +198,7 @@ class TransactionDeletionRecord(Document):
)
@frappe.whitelist()
def process_tasks(self):
def start_deletion_tasks(self):
# This method is the entry point for the chain of events that follow
self.db_set("status", "Running")
self.enqueue_task(task="Delete Bins")