Skip to content

Commit 09cac1b

Browse files
committed
Merge branch 'CHAOS-678-publish-campaign' of github.com:devsoc-unsw/chaos into CHAOS-678-publish-campaign
2 parents 719b50f + d7f6c84 commit 09cac1b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

backend/server/src/models/campaign.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,14 @@ impl CampaignAttachment {
749749

750750
/// Deletes an attachment. Returns BadRequest if campaign is published.
751751
/// 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
752760
pub async fn delete(
753761
attachment_id: i64,
754762
transaction: &mut Transaction<'_, Postgres>,
@@ -820,4 +828,4 @@ impl CampaignUpdate {
820828
// TODO: update to ensure one day apart min to match frontend
821829
Ok(())
822830
}
823-
}
831+
}

0 commit comments

Comments
 (0)