diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index af841c4..b330fbb 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -289,13 +289,13 @@ app.get('/get_log', [ //check('llo').isBase64() ], cors(corsOptions), (req, res, next) => { + + (async() => { var RES = new Object(); RES.token = req.query["token"] RES.start = req.query["start"] RES.end = req.query["end"] - RES.filter = req.query["filter"] - - (async() => { + RES.filter = req.query["filter"]; var isvalid = await checkToken(RES.token); if(isvalid.action == 'ok'){ console.log("Authserver ok " + RES.token);