Browse Source

change dateCreated to a string (from a Date object, which persists as a Date object)

tweaks
Trent Larson 2 years ago
parent
commit
b3cdcb010a
  1. 2
      src/db/tables/index.ts
  2. 2
      src/views/AccountViewView.vue
  3. 2
      src/views/ImportAccountView.vue

2
src/db/tables/index.ts

@ -1,6 +1,6 @@
export type Account = {
id?: number; // auto-generated by Dexie
dateCreated: Date;
dateCreated: string;
derivationPath: string;
identity: string;
publicKeyHex: string;

2
src/views/AccountViewView.vue

@ -247,7 +247,7 @@ export default class AccountViewView extends Vue {
this.derivationPath
);
await db.accounts.add({
dateCreated: new Date(),
dateCreated: new Date().toISOString(),
derivationPath: this.derivationPath,
identity: JSON.stringify(newId),
mnemonic: this.mnemonic,

2
src/views/ImportAccountView.vue

@ -79,7 +79,7 @@ export default class ImportAccountView extends Vue {
const num_accounts = await db.accounts.count();
if (num_accounts === 0) {
await db.accounts.add({
dateCreated: new Date(),
dateCreated: new Date().toISOString(),
derivationPath: this.derivationPath,
identity: JSON.stringify(newId),
mnemonic: mne,

Loading…
Cancel
Save