1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Fix mapping issue between client and SDK (#15056)

This commit is contained in:
SmithThe4th
2025-06-13 10:58:38 -04:00
committed by GitHub
parent 7c2ab56768
commit c6e4a9ba75
5 changed files with 21 additions and 8 deletions

View File

@@ -188,6 +188,7 @@ export class CipherView implements View, InitializerMetadata {
}
const view = new CipherView();
const creationDate = obj.creationDate == null ? null : new Date(obj.creationDate);
const revisionDate = obj.revisionDate == null ? null : new Date(obj.revisionDate);
const deletedDate = obj.deletedDate == null ? null : new Date(obj.deletedDate);
const attachments = obj.attachments?.map((a: any) => AttachmentView.fromJSON(a));
@@ -195,6 +196,7 @@ export class CipherView implements View, InitializerMetadata {
const passwordHistory = obj.passwordHistory?.map((ph: any) => PasswordHistoryView.fromJSON(ph));
Object.assign(view, obj, {
creationDate: creationDate,
revisionDate: revisionDate,
deletedDate: deletedDate,
attachments: attachments,