We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df7bf3 commit e1cd311Copy full SHA for e1cd311
epic-games.js
@@ -17,6 +17,7 @@ const SCREEN_WIDTH = Number(process.env.SCREEN_WIDTH) || 1280;
17
const SCREEN_HEIGHT = Number(process.env.SCREEN_HEIGHT) || 1280;
18
19
const db = await jsonDb('epic-games.json');
20
+db.data ||= {};
21
const migrateDb = (user) => {
22
if (user in db.data || !('claimed' in db.data)) return;
23
db.data[user] = {};
util.js
@@ -16,7 +16,6 @@ import { Low, JSONFile } from 'lowdb';
16
export const jsonDb = async file => {
const db = new Low(new JSONFile(dataDir(file)));
await db.read();
- db.data ||= {};
return db;
};
0 commit comments