From 2750768995da1b9401d625f09b75b5092dd6a4f7 Mon Sep 17 00:00:00 2001 From: mrfry Date: Thu, 1 Oct 2020 14:01:43 +0200 Subject: [PATCH] Fixed res variable in isAdding --- modules.json | 3 ++- modules/api/api.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules.json b/modules.json index f376873..b268626 100644 --- a/modules.json +++ b/modules.json @@ -30,7 +30,8 @@ ], "name": "api", "urls": [ - "api.frylabs.net" + "api.frylabs.net", + "localhost" ] }, "main": { diff --git a/modules/api/api.js b/modules/api/api.js index 59044a9..0d5d148 100644 --- a/modules/api/api.js +++ b/modules/api/api.js @@ -595,10 +595,10 @@ function GetApp () { data, { motd, version }, dryRun - ).then((res) => { + ).then((r) => { res.json({ - success: res !== -1, - newQuestions: res + success: r !== -1, + newQuestions: r }) }) })