diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-05-24 17:30:27 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-05-24 17:30:27 +0200 |
commit | 27a42f92572abfdb2e60f3f212e4f0fcc71a6961 (patch) | |
tree | cb07ba11b01b05baccbbec0d58b231d1d8c237f7 /lib/wallet/db.ts | |
parent | ce7f7b8321c89f9bdd62e9b148181865f8834871 (diff) | |
download | wallet-core-27a42f92572abfdb2e60f3f212e4f0fcc71a6961.tar.xz |
respond to failed payments
Diffstat (limited to 'lib/wallet/db.ts')
-rw-r--r-- | lib/wallet/db.ts | 5 |
1 files changed, 2 insertions, 3 deletions
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<IDBDatabase> { 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<IDBDatabase> { {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", |