diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-02 00:42:40 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-02 00:42:40 +0100 |
commit | e1369ff7e8fc02116b9c4261036f0e42e3423cf4 (patch) | |
tree | c621067ebda8977a888bfed34b7bbecf64b3b0f0 /src/db.ts | |
parent | aaf7e1338d6cdb1b4e01ad318938b3eaea2f922b (diff) |
the giant refactoring: split wallet into multiple parts
Diffstat (limited to 'src/db.ts')
-rw-r--r-- | src/db.ts | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -1,5 +1,5 @@ import { Stores, WALLET_DB_VERSION } from "./dbTypes"; -import { Store, Index } from "./query"; +import { Store, Index } from "./util/query"; const DB_NAME = "taler"; @@ -21,9 +21,7 @@ export function openTalerDb( req.onsuccess = e => { req.result.onversionchange = (evt: IDBVersionChangeEvent) => { console.log( - `handling live db version change from ${evt.oldVersion} to ${ - evt.newVersion - }`, + `handling live db version change from ${evt.oldVersion} to ${evt.newVersion}`, ); req.result.close(); onVersionChange(); @@ -33,9 +31,7 @@ export function openTalerDb( req.onupgradeneeded = e => { const db = req.result; console.log( - `DB: upgrade needed: oldVersion=${e.oldVersion}, newVersion=${ - e.newVersion - }`, + `DB: upgrade needed: oldVersion=${e.oldVersion}, newVersion=${e.newVersion}`, ); switch (e.oldVersion) { case 0: // DB does not exist yet |