Skip to content

Commit

Permalink
Fix bulk collection deletion (#4257)
Browse files Browse the repository at this point in the history
The bulk collection delete seems to have removed the extra org_id in the
posted data. Now we only use the org_id from the path.

Fixes #4253
  • Loading branch information
BlackDex authored Jan 25, 2024
1 parent 2775c6c commit 5c77431
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/api/core/organizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ async fn post_organization_collection_delete(
#[allow(non_snake_case)]
struct BulkCollectionIds {
Ids: Vec<String>,
OrganizationId: String,
}

#[delete("/organizations/<org_id>/collections", data = "<data>")]
Expand All @@ -622,9 +621,6 @@ async fn bulk_delete_organization_collections(
mut conn: DbConn,
) -> EmptyResult {
let data: BulkCollectionIds = data.into_inner().data;
if org_id != data.OrganizationId {
err!("OrganizationId mismatch");
}

let collections = data.Ids;

Expand Down

0 comments on commit 5c77431

Please sign in to comment.