Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-25 05:40:29 +01:00
Correct update cipher order: first save cipher, then cipher-folder, then notify
Dieser Commit ist enthalten in:
Ursprung
20964ac2d8
Commit
1ce2587330
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -302,9 +302,9 @@ pub fn update_cipher_from_data(
|
|||
cipher.fields = data.Fields.map(|f| f.to_string());
|
||||
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));
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren