refactor(sandbox): rename delete_storage to delete_draft_storage for clarity

- Updated the SandboxManager to rename the method for deleting storage to better reflect its purpose.
- Adjusted the WorkflowVariableCollectionApi to utilize the new method name.
- Improved error handling in ArchiveSandboxStorage's delete method to log exceptions during deletion.
This commit is contained in:
Harry
2026-01-23 00:12:20 +08:00
parent 2f01107b09
commit cbac914649
4 changed files with 6 additions and 5 deletions

View File

@ -252,7 +252,7 @@ class WorkflowVariableCollectionApi(Resource):
def delete(self, app_model: App):
# FIXME(Mairuis): move to SandboxArtifactService
current_user, _ = current_account_with_tenant()
SandboxManager.delete_storage(app_model.tenant_id, current_user.id)
SandboxManager.delete_draft_storage(app_model.tenant_id, current_user.id)
draft_var_srv = WorkflowDraftVariableService(
session=db.session(),
)