mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +00:00
build: upgrade lowdb (#689)
This commit is contained in:
committed by
GitHub
parent
3d9a9a2226
commit
a567fdc446
@@ -53,7 +53,7 @@ async function loadDb() {
|
||||
const dbInDisk = populateDb();
|
||||
|
||||
const adapter = new JSONFile<DatabaseModel>(dbInDisk);
|
||||
const db = new Low(adapter);
|
||||
const db = new Low(adapter, dbModel);
|
||||
|
||||
const data = await parseDb(dbInDisk, db);
|
||||
if (data === null) {
|
||||
|
||||
@@ -15,7 +15,7 @@ class ConfigService {
|
||||
constructor() {
|
||||
this.configPath = join(getAppDataPath(), 'config.json');
|
||||
const adapter = new JSONFile<Config>(this.configPath);
|
||||
this.config = new Low<Config>(adapter);
|
||||
this.config = new Low<Config>(adapter, null);
|
||||
|
||||
this.init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user