update lowdb
This commit is contained in:
parent
aa53075ab5
commit
89ba21d2cb
3 changed files with 26 additions and 25 deletions
3
util.js
3
util.js
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue