mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Fix 'delay_on_commit' calls for project-id passing-around
This commit is contained in:
@@ -69,12 +69,12 @@ def delete_issue_deps(project_id, issue_id):
|
||||
num_deleted += this_num_deleted
|
||||
|
||||
if num_deleted >= budget:
|
||||
delay_on_commit(delete_issue_deps, issue_id)
|
||||
delay_on_commit(delete_issue_deps, project_id, issue_id)
|
||||
return
|
||||
|
||||
if budget - num_deleted <= 0:
|
||||
# no more budget for the self-delete.
|
||||
delay_on_commit(delete_issue_deps, issue_id)
|
||||
delay_on_commit(delete_issue_deps, project_id, issue_id)
|
||||
|
||||
else:
|
||||
# final step: delete the issue itself
|
||||
|
||||
Reference in New Issue
Block a user