add: use bucket methods everywhere

This commit is contained in:
trisua 2025-08-23 15:37:09 -04:00
parent 4e4f26ea14
commit 6583c34243
5 changed files with 51 additions and 21 deletions

View file

@ -210,7 +210,7 @@ impl DataManager {
// if there's an issue in the database
//
// the actual file takes up much more space than the database entry.
let upload = self.get_upload_by_id(id).await?;
let upload = self.get_upload_by_id_bucket(id, bucket).await?;
upload.remove(&self.0.0.directory)?;
// delete from database