diff --git a/libs/common/src/models/export/password-history.export.ts b/libs/common/src/models/export/password-history.export.ts index ece7e331009..5382b9cb974 100644 --- a/libs/common/src/models/export/password-history.export.ts +++ b/libs/common/src/models/export/password-history.export.ts @@ -22,7 +22,7 @@ export class PasswordHistoryExport { static toDomain(req: PasswordHistoryExport, domain = new Password()) { domain.password = req.password != null ? new EncString(req.password) : null; - domain.lastUsedDate = req.lastUsedDate; + domain.lastUsedDate = req.lastUsedDate ? new Date(req.lastUsedDate) : null; return domain; }