Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-25 05:40:29 +01:00
don't use assert()
in production code
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
Dieser Commit ist enthalten in:
Ursprung
56cad93e0f
Commit
ed8091a994
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
|
@ -610,7 +610,9 @@ async fn bulk_delete_organization_collections(
|
||||||
mut conn: DbConn,
|
mut conn: DbConn,
|
||||||
) -> EmptyResult {
|
) -> EmptyResult {
|
||||||
let data: BulkCollectionIds = data.into_inner().data;
|
let data: BulkCollectionIds = data.into_inner().data;
|
||||||
assert!(org_id == data.OrganizationId);
|
if org_id != data.OrganizationId {
|
||||||
|
err!("OrganizationId mismatch");
|
||||||
|
}
|
||||||
|
|
||||||
let collections = data.Ids;
|
let collections = data.Ids;
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren