From 8fed5b4b7370431602c0b25f8142009e61f7b906 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 30 Aug 2023 18:33:56 +0200 Subject: wallet-core: allow version change event --- packages/taler-wallet-core/src/db.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'packages/taler-wallet-core/src/db.ts') diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 1255e8c71..a642c0203 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -114,6 +114,11 @@ export const TALER_WALLET_MAIN_DB_NAME = "taler-wallet-main-v9"; */ export const TALER_WALLET_META_DB_NAME = "taler-wallet-meta"; +/** + * Stored backups, mainly created when manually importing a backup. + */ +export const TALER_WALLET_STORED_BACKUPS_DB_NAME = "taler-wallet-stored-backups"; + export const CURRENT_DB_CONFIG_KEY = "currentMainDbName"; /** @@ -2773,15 +2778,10 @@ export interface StoredBackupMeta { name: string; } -export interface StoredBackupData { - name: string; - data: any; -} - export const StoredBackupStores = { backupMeta: describeStore( "backupMeta", - describeContents({ keyPath: "name" }), + describeContents({ keyPath: "name" }), {}, ), backupData: describeStore("backupData", describeContents({}), {}), @@ -3250,7 +3250,7 @@ export async function openStoredBackupsDatabase( ): Promise> { const backupsDbHandle = await openDatabase( idbFactory, - TALER_WALLET_META_DB_NAME, + TALER_WALLET_STORED_BACKUPS_DB_NAME, 1, () => {}, onStoredBackupsDbUpgradeNeeded, -- cgit v1.2.3