Fix integration with backblaze API (#461)

* Fix integration with backblaze API

* Remove keys (already reset, dw)
This commit is contained in:
Geometrically
2022-10-09 19:10:06 -07:00
committed by GitHub
parent 3e52f804a7
commit 07edb998e4
6 changed files with 11 additions and 37 deletions

View File

@@ -206,18 +206,6 @@ pub async fn delete_file(
.execute(&mut *transaction)
.await?;
let project_id: models::projects::ProjectId =
database::models::ids::ProjectId(row.project_id).into();
file_host
.delete_file_version(
"",
&format!(
"data/{}/versions/{}/{}",
project_id, row.version_number, row.filename
),
)
.await?;
transaction.commit().await?;
Ok(HttpResponse::NoContent().body(""))