From 8193ddc308afe440deebe571af18b0cff52860e0 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Sun, 11 Oct 2020 22:45:20 +0200 Subject: [PATCH] Bugfixes --- app/index.js | 1 + test/test.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/index.js b/app/index.js index 6b77ce1..1869ae7 100644 --- a/app/index.js +++ b/app/index.js @@ -235,6 +235,7 @@ module.exports.getGameData = async function (name, includeMods) { let result = []; for (let info of await Promise.all(promiseList)) { // Skip mods if not required + if(!info) continue; if (info.isMod && !includeMods) continue; else result.push(info); } diff --git a/test/test.js b/test/test.js index 6845e5f..bbc09ad 100644 --- a/test/test.js +++ b/test/test.js @@ -10,17 +10,17 @@ const { const GameDownload = require("../app/scripts/classes/game-download.js"); debug(true); -//main(); +main(); //downloadGameNOPY(); -downloadGameMEGA(); +//downloadGameMEGA(); async function main() { let loginResult = await login("MillenniumEarl", "f9vTcRNuvxj4YpK"); if (loginResult.success) { await loadF95BaseData(); - let gameData = await getGameData("kingdom of deception", false); - console.log(gameData.pop()); + let gameData = await getGameData("champion", false); + console.log(gameData); // let userData = await getUserData(); // console.log(userData);