Merge pull request #307 from Rexexe/main

Resolve error with no default data
This commit is contained in:
Ralf Vogler 2024-06-25 18:44:25 +02:00 committed by GitHub
commit b8071d442c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();