diff options
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 14 |
1 files changed, 7 insertions, 7 deletions
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<MetaConfigRecord>({ keyPath: "name" }), + describeContents<StoredBackupMeta>({ keyPath: "name" }), {}, ), backupData: describeStore("backupData", describeContents<any>({}), {}), @@ -3250,7 +3250,7 @@ export async function openStoredBackupsDatabase( ): Promise<DbAccess<typeof StoredBackupStores>> { const backupsDbHandle = await openDatabase( idbFactory, - TALER_WALLET_META_DB_NAME, + TALER_WALLET_STORED_BACKUPS_DB_NAME, 1, () => {}, onStoredBackupsDbUpgradeNeeded, |