Merge pull request #307 from Rexexe/main
Resolve error with no default data
This commit is contained in:
commit
b8071d442c
1 changed files with 1 additions and 1 deletions
2
xbox.js
2
xbox.js
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue