Skip to content

Commit

Permalink
don't use assert() in production code
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
  • Loading branch information
stefan0xC and dani-garcia committed Mar 22, 2023
1 parent e869f47 commit bcabe06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/core/organizations.rs
Expand Up @@ -610,7 +610,9 @@ async fn bulk_delete_organization_collections(
mut conn: DbConn,
) -> EmptyResult {
let data: BulkCollectionIds = data.into_inner().data;
assert!(org_id == data.OrganizationId);
if org_id != data.OrganizationId {
err!("OrganizationId mismatch");
}

let collections = data.Ids;

Expand Down

0 comments on commit bcabe06

Please sign in to comment.