mirror of
https://github.com/dani-garcia/vaultwarden
synced 2024-11-22 20:03:19 +00:00
Correct update cipher order: first save cipher, then cipher-folder, then notify
This commit is contained in:
parent
20964ac2d8
commit
1ce2587330
1 changed files with 2 additions and 2 deletions
|
@ -303,8 +303,8 @@ pub fn update_cipher_from_data(
|
|||
cipher.data = type_data.to_string();
|
||||
cipher.password_history = data.PasswordHistory.map(|f| f.to_string());
|
||||
|
||||
cipher.move_to_folder(data.FolderId, &headers.user.uuid, &conn)?;
|
||||
cipher.save(&conn)?;
|
||||
cipher.move_to_folder(data.FolderId, &headers.user.uuid, &conn)?;
|
||||
|
||||
nt.send_cipher_update(ut, &cipher, &cipher.update_users_revision(&conn));
|
||||
|
||||
|
|
Loading…
Reference in a new issue