From 27a42f92572abfdb2e60f3f212e4f0fcc71a6961 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 24 May 2016 17:30:27 +0200 Subject: respond to failed payments --- lib/wallet/db.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/wallet/db.ts') diff --git a/lib/wallet/db.ts b/lib/wallet/db.ts index 9374aa447..0111a6c6e 100644 --- a/lib/wallet/db.ts +++ b/lib/wallet/db.ts @@ -25,7 +25,7 @@ */ const DB_NAME = "taler"; -const DB_VERSION = 5; +const DB_VERSION = 6; /** * Return a promise that resolves @@ -41,7 +41,7 @@ export function openTalerDb(): Promise { resolve(req.result); }; req.onupgradeneeded = (e) => { - let db = req.result; + const db = req.result; console.log("DB: upgrade needed: oldVersion = " + e.oldVersion); switch (e.oldVersion) { case 0: // DB does not exist yet @@ -49,7 +49,6 @@ export function openTalerDb(): Promise { {keyPath: "baseUrl"}); exchanges.createIndex("pubKey", "masterPublicKey"); db.createObjectStore("reserves", {keyPath: "reserve_pub"}); - db.createObjectStore("denoms", {keyPath: "denomPub"}); const coins = db.createObjectStore("coins", {keyPath: "coinPub"}); coins.createIndex("exchangeBaseUrl", "exchangeBaseUrl"); const transactions = db.createObjectStore("transactions", -- cgit v1.2.3