fix: rewrite attachment deletion logic

This commit is contained in:
Paul Makles
2022-06-20 10:49:09 +01:00
parent ef757aa2fb
commit 7fc4fb2df7
6 changed files with 96 additions and 5 deletions

View File

@@ -13,4 +13,5 @@ pub trait AbstractAttachment: Sync + Send {
async fn insert_attachment(&self, attachment: &File) -> Result<()>;
async fn mark_attachment_as_reported(&self, id: &str) -> Result<()>;
async fn mark_attachment_as_deleted(&self, id: &str) -> Result<()>;
async fn mark_attachments_as_deleted(&self, ids: &[String]) -> Result<()>;
}