build: upgrade lowdb (#689)

This commit is contained in:
Alex Christoffer Rasmussen
2024-01-02 20:27:10 +01:00
committed by GitHub
parent 3d9a9a2226
commit a567fdc446
4 changed files with 29 additions and 152 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
"express-static-gzip": "^2.1.7",
"express-validator": "^6.14.2",
"got": "^14.0.0",
"lowdb": "^5.0.5",
"lowdb": "^7.0.1",
"multer": "^1.4.5-lts.1",
"node-osc": "^9.0.2",
"node-xlsx": "^0.23.0",
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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();
}