don't use assert() in production code

Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
This commit is contained in:
Stefan Melmuk 2023-03-22 21:45:57 +01:00 committed by Stefan Melmuk
parent 56cad93e0f
commit ed8091a994
No known key found for this signature in database
GPG Key ID: 817020C608FE9C09

View File

@ -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;