mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-11 03:05:58 +03:00
CollectionCipher::save() and delete() should return QueryResult instead of bool
This commit is contained in:
@@ -663,7 +663,10 @@ fn post_org_import(query: OrgIdData, data: JsonUpcase<ImportData>, headers: Head
|
||||
Err(_) => err!("Failed to assign to collection")
|
||||
};
|
||||
|
||||
CollectionCipher::save(cipher_id, coll_id, &conn);
|
||||
match CollectionCipher::save(cipher_id, coll_id, &conn) {
|
||||
Ok(()) => (),
|
||||
Err(_) => err!("Failed to add cipher to collection")
|
||||
};
|
||||
}
|
||||
|
||||
let mut user = headers.user;
|
||||
|
Reference in New Issue
Block a user