mirror of
https://github.com/langgenius/dify.git
synced 2026-03-10 18:06:14 +08:00
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:
@ -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(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user