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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user