Skip to content

Commit 3912945

Browse files
committed
Switch delete submission API to use the bulk operation
1 parent f33f7f0 commit 3912945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assemblyline_ui/api/v4/submission.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def delete_submission(sid, **kwargs):
4646
if Classification.is_accessible(user['classification'], submission['classification']) \
4747
and (submission['params']['submitter'] == user['uname'] or 'admin' in user['type']):
4848
with forge.get_filestore() as f_transport:
49-
STORAGE.delete_submission_tree(sid, Classification, transport=f_transport)
49+
STORAGE.delete_submission_tree_bulk(sid, Classification, transport=f_transport)
5050
STORAGE.submission.commit()
5151
return make_api_response({"success": True})
5252
else:

0 commit comments

Comments
 (0)