Skip to content

Commit

Permalink
fixup! add tests for new db v5 migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jkasten2 committed Aug 17, 2023
1 parent 44c2f69 commit cb40c0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/services/IndexedDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ import Utils from '../context/Utils';
import Emitter from '../libraries/Emitter';
import Log from '../libraries/Log';

const DATABASE_VERSION = 5;

export default class IndexedDb {
public emitter: Emitter;
private database: IDBDatabase | undefined;
private openLock: Promise<IDBDatabase> | undefined;

constructor(
private readonly databaseName: string,
private readonly dbVersion = 5,
private readonly dbVersion = DATABASE_VERSION,
) {
this.emitter = new Emitter();
}
Expand Down

0 comments on commit cb40c0a

Please sign in to comment.