Merge branch 'async-updates' of https://github.com/BlackDex/vaultwarden into BlackDex-async-updates

This commit is contained in:
Daniel García
2022-02-27 21:50:33 +01:00
36 changed files with 4884 additions and 2443 deletions

View File

@@ -1182,9 +1182,7 @@ async fn post_org_import(
let ciphers = stream::iter(data.Ciphers)
.then(|cipher_data| async {
let mut cipher = Cipher::new(cipher_data.Type, cipher_data.Name.clone());
update_cipher_from_data(&mut cipher, cipher_data, &headers, false, &conn, &nt, UpdateType::CipherCreate)
.await
.ok();
update_cipher_from_data(&mut cipher, cipher_data, &headers, false, &conn, &nt, UpdateType::None).await.ok();
cipher
})
.collect::<Vec<Cipher>>()