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 }) }) })