mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-24 13:55:40 +03:00
don't use assert()
in production code
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
This commit is contained in:
parent
56cad93e0f
commit
ed8091a994
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue