There was an error while loading. Please reload this page.
2 parents 719b50f + d7f6c84 commit 09cac1bCopy full SHA for 09cac1b
1 file changed
backend/server/src/models/campaign.rs
@@ -749,6 +749,14 @@ impl CampaignAttachment {
749
750
/// Deletes an attachment. Returns BadRequest if campaign is published.
751
/// Returns (organisation_id, campaign_id) for the caller to build storage path.
752
+ /// # Arguments
753
+ ///
754
+ /// * `attachment_id` - ID of the attachment to delete
755
+ /// * `transaction` - Database transaction to use
756
757
+ /// # Returns
758
759
+ /// * `Result<i64, ChaosError>` - The ID of the deleted attachment or error if not found
760
pub async fn delete(
761
attachment_id: i64,
762
transaction: &mut Transaction<'_, Postgres>,
@@ -820,4 +828,4 @@ impl CampaignUpdate {
820
828
// TODO: update to ensure one day apart min to match frontend
821
829
Ok(())
822
830
}
823
-}
831
+}
0 commit comments