update lowdb

This commit is contained in:
Ralf Vogler 2022-12-17 00:12:59 +01:00
parent aa53075ab5
commit 89ba21d2cb
3 changed files with 26 additions and 25 deletions

View file

@ -12,7 +12,8 @@ export const dirs = {
screenshots: dataDir('screenshots'),
};
import { Low, JSONFile } from 'lowdb';
import { Low } from 'lowdb';
import { JSONFile } from 'lowdb/node';
export const jsonDb = async file => {
const db = new Low(new JSONFile(dataDir(file)));
await db.read();