diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-16 16:09:49 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-16 16:09:49 -0300 |
commit | 90c7dc49b7d377b4b3e691f45b84b51f6b03f9af (patch) | |
tree | 25778b155e7dba168eab981ca47d6d63cba94163 /packages/taler-wallet-core/src/db.ts | |
parent | 366e1fb65fb33b7b17b61e2f90269b7fd4097fb4 (diff) | |
download | wallet-core-90c7dc49b7d377b4b3e691f45b84b51f6b03f9af.tar.xz |
fix #8415
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 3b53bbf35..0aae2ddff 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -1284,8 +1284,9 @@ export interface PurchaseRecord { posConfirmation: string | undefined; /** - * This purchase was created by sharing nonce or - * did the wallet made the nonce public + * This purchase was created by reading + * a payment share or the wallet + * the nonce public by a payment share */ shared: boolean; @@ -1337,9 +1338,9 @@ export enum ConfigRecordKey { */ export type ConfigRecord = | { - key: ConfigRecordKey.WalletBackupState; - value: WalletBackupConfState; - } + key: ConfigRecordKey.WalletBackupState; + value: WalletBackupConfState; + } | { key: ConfigRecordKey.CurrencyDefaultsApplied; value: boolean } | { key: ConfigRecordKey.DevMode; value: boolean } | { key: ConfigRecordKey.TestLoopTx; value: number }; @@ -1617,15 +1618,15 @@ export enum BackupProviderStateTag { export type BackupProviderState = | { - tag: BackupProviderStateTag.Provisional; - } + tag: BackupProviderStateTag.Provisional; + } | { - tag: BackupProviderStateTag.Ready; - nextBackupTimestamp: DbPreciseTimestamp; - } + tag: BackupProviderStateTag.Ready; + nextBackupTimestamp: DbPreciseTimestamp; + } | { - tag: BackupProviderStateTag.Retrying; - }; + tag: BackupProviderStateTag.Retrying; + }; export interface BackupProviderTerms { supportedProtocolVersion: string; @@ -3155,7 +3156,7 @@ export async function openStoredBackupsDatabase( idbFactory, TALER_WALLET_STORED_BACKUPS_DB_NAME, 1, - () => {}, + () => { }, onStoredBackupsDbUpgradeNeeded, ); @@ -3178,7 +3179,7 @@ export async function openTalerDatabase( idbFactory, TALER_WALLET_META_DB_NAME, 1, - () => {}, + () => { }, onMetaDbUpgradeNeeded, ); |