From 61fdf566c9c2748ce06e35cd7262d314151c836d Mon Sep 17 00:00:00 2001 From: Rex Date: Fri, 1 Mar 2024 20:57:00 +0800 Subject: [PATCH] Resolve error with no default data --- xbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbox.js b/xbox.js index b2406cc..67054ef 100644 --- a/xbox.js +++ b/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();