vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit f724addf9ac972a04f536262ed21a7e6c1da0660
parent aa20974703128e508036857fc98f1301b027d838
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Tue, 28 Jul 2020 17:44:33 +0200

Merge pull request #1076 from jjlin/soft-delete

Fix soft delete notifications
Diffstat:
Msrc/api/core/ciphers.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs @@ -999,11 +999,12 @@ fn _delete_cipher_by_uuid(uuid: &str, headers: &Headers, conn: &DbConn, soft_del if soft_delete { cipher.deleted_at = Some(chrono::Utc::now().naive_utc()); cipher.save(&conn)?; + nt.send_cipher_update(UpdateType::CipherUpdate, &cipher, &cipher.update_users_revision(&conn)); } else { cipher.delete(&conn)?; + nt.send_cipher_update(UpdateType::CipherDelete, &cipher, &cipher.update_users_revision(&conn)); } - nt.send_cipher_update(UpdateType::CipherDelete, &cipher, &cipher.update_users_revision(&conn)); Ok(()) }