Resolve error with no default data
This commit is contained in:
parent
2ea0c611e4
commit
61fdf566c9
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');
|
console.log(datetime(), 'started checking xbox');
|
||||||
|
|
||||||
const db = await jsonDb('xbox.json');
|
const db = await jsonDb('xbox.json', {});
|
||||||
db.data ||= {};
|
db.data ||= {};
|
||||||
|
|
||||||
handleSIGINT();
|
handleSIGINT();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue