commit c2725916f45220a81ae32ba6d18d138a3d04ffbb
parent f9feca1ce450501b4a7a4c07fe16153353e4fa95
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Fri, 14 Oct 2022 17:55:31 +0200
Merge branch 'jjlin-creation-date'
Diffstat:
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 },