From 1038b16118f6e53627d02777f0eab1b4021fbcbf Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Mon, 2 Nov 2020 18:32:36 +0100 Subject: [PATCH] Bugfix in game update check --- app/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/index.js b/app/index.js index 1d59db9..4b64b43 100644 --- a/app/index.js +++ b/app/index.js @@ -90,7 +90,8 @@ module.exports.checkIfGameHasUpdate = async function (info) { if (!exists) return true; // Parse version from title - const onlineVersion = await scraper.getGameInfo(info.url).version; + const onlineInfo = await scraper.getGameInfo(info.url); + const onlineVersion = onlineInfo.version; // Compare the versions return onlineVersion.toUpperCase() !== info.version.toUpperCase();