feat: BUD-05

This commit is contained in:
2024-10-15 10:47:36 +01:00
parent 9ccbace175
commit a580ceac44
20 changed files with 482 additions and 282 deletions

View File

@ -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
}
}
}