1 parent
2c98b8f925
commit
e4aa787e06
27 files changed
+179
-110
No files matched your search
@@ -194,8 +194,6 @@ pub async fn delete_attachment(
|
||||
return Err(AppError::NotFound("Attachment not found".to_string()));
|
||||
}
|
||||
if let Err(error) = storage.delete(&storage_key).await {
|
||||
// SQL is authoritative. A failed physical delete leaves an orphaned blob,
|
||||
// which is safer than leaving a DB row pointing at a missing attachment.
|
||||
tracing::warn!(error = %error, storage_key = %storage_key, "Failed to remove deleted attachment blob");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user