Bugfix in game update check

pull/46/head
MillenniumEarl 2020-11-02 18:32:36 +01:00
parent 414c34e917
commit 1038b16118
1 changed files with 2 additions and 1 deletions

View File

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