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 b4a38f1f630c3d1d25328ba983f2fa1d47eee921
parent 646186fe389dd093fa87099f8a39e865e0a35af3
Author: Jeremy Lin <jjlin@users.noreply.github.com>
Date:   Wed, 12 Oct 2022 00:17:09 -0700

Add `CreationDate` to cipher response JSON

Upstream PR: https://github.com/bitwarden/server/pull/2142

Diffstat:
Msrc/db/models/cipher.rs | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/db/models/cipher.rs b/src/db/models/cipher.rs @@ -160,6 +160,7 @@ impl Cipher { "Object": "cipherDetails", "Id": self.uuid, "Type": self.atype, + "CreationDate": format_date(&self.created_at), "RevisionDate": format_date(&self.updated_at), "DeletedDate": self.deleted_at.map_or(Value::Null, |d| Value::String(format_date(&d))), "FolderId": if let Some(cipher_sync_data) = cipher_sync_data { cipher_sync_data.cipher_folders.get(&self.uuid).map(|c| c.to_string() ) } else { self.get_folder_uuid(user_uuid, conn).await },