mirror of
https://github.com/v0l/route96.git
synced 2025-06-21 07:30:46 +00:00
feat: BUD-05
This commit is contained in:
@ -124,7 +124,7 @@ async fn delete_file(
|
||||
|
||||
let this_owner = match owners.iter().find(|o| o.pubkey.eq(&pubkey_vec)) {
|
||||
Some(o) => o,
|
||||
None => return Err(Error::msg("You dont own this file, you cannot delete it"))
|
||||
None => return Err(Error::msg("You dont own this file, you cannot delete it")),
|
||||
};
|
||||
if let Err(e) = db.delete_file_owner(&id, this_owner.id).await {
|
||||
return Err(Error::msg(format!("Failed to delete (db): {}", e)));
|
||||
@ -206,4 +206,4 @@ pub async fn head_blob(sha256: &str, fs: &State<FileStore>) -> Status {
|
||||
} else {
|
||||
Status::NotFound
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user