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