Resolve error with no default data

This commit is contained in:
Rex 2024-03-01 20:57:00 +08:00
parent 2ea0c611e4
commit 61fdf566c9

View file

@ -15,7 +15,7 @@ const URL_CLAIM = 'https://www.xbox.com/en-US/live/gold'; // #gameswithgold";
console.log(datetime(), 'started checking xbox');
const db = await jsonDb('xbox.json');
const db = await jsonDb('xbox.json', {});
db.data ||= {};
handleSIGINT();