Skip to content

Commit

Permalink
fix storage Date
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Oct 10, 2019
1 parent a498ba5 commit 9b832d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/api/ada/lib/storage/adaMigration.js
Expand Up @@ -190,7 +190,7 @@ export async function storagev2Migation(
IsEncrypted: true,
PasswordLastUpdate: wallet.adaWallet.cwPassphraseLU == null
? null
: wallet.adaWallet.cwPassphraseLU,
: new Date(wallet.adaWallet.cwPassphraseLU),
},
hwWalletMetaInsert: wallet.adaWallet.cwHardwareInfo == null
? undefined
Expand Down
3 changes: 1 addition & 2 deletions app/api/ada/lib/storage/database/legacy.js
@@ -1,7 +1,6 @@
// @flow

import { dumpByVersion } from './index';
import { RustModule } from '../../cardanoCrypto/rustLoader';
import {
_getFromStorage,
_saveInStorage,
Expand Down Expand Up @@ -49,7 +48,7 @@ export type LegacyAdaWallet = {
cwId: string,
cwMeta: LegacyAdaWalletMetaParams,
cwType: LegacyAdaWalletType,
cwPassphraseLU?: Date,
cwPassphraseLU?: string,
cwHardwareInfo?: LegacyAdaWalletHardwareInfo,
};
export type LegacyAdaWalletMetaParams = {
Expand Down
Expand Up @@ -176,7 +176,7 @@ Array [
"Hash": "a4f667dd7dd4e242fdc082540f24996a54227f6bbf0e77f735fc192fca4dbe8fcad69edddcd0ab1c5d1db62717c6b733fba5f19bcf4cda7a17770408342c4eb25373ab7e47678ab20ad428301a39324a0f789f10901ce41a128b466568f863b9b7baa989aaf09ec746615ea2400430dadec18ada015841107bd2133dc3b2af107ecea49c1b345bdb51ebda9fed6ebe6546efa20524d2dcc66c8a5605",
"IsEncrypted": true,
"KeyId": 1,
"PasswordLastUpdate": "2019-07-31T13:40:16+03:00",
"PasswordLastUpdate": 2019-07-31T10:40:16.000Z,
},
Object {
"Hash": "b2938f29eb965952b03baaf010b0f5fe4a2c116a1e255274c9ace24deb72450ce1c045821c42ed11b33db3124b1551793e76b8ad187efb92b28969b92bb95964",
Expand Down

0 comments on commit 9b832d7

Please sign in to comment.