diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 817f7d5..20c089e 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -346,7 +346,7 @@ global.pipelines=[]; // *************************************************** app.get('/get_log', [ - check('access_token').isLength({ min: 40 }) + check('token').isLength({ min: 40 }) ], cors(corsOptions), (req, res, next) => { @@ -364,7 +364,7 @@ cors(corsOptions), (req, res, next) => { RES.error = 'no' } if(RES.error == 'ok'){ - var resdata = await getuserpipelines(token,isvalid.user) + var resdata = await getuserpipelines(RES.token,isvalid.user) var mongourl = "mongodb://"+CONFIG.mongo.user+":"+CONFIG.mongo.password+"@ondemand_playground_mongo1:27017,ondemand_playground_mongo2:27017,ondemand_playground_mongo3:27017,ondemand_playground_mongo4:27017,ondemand_playground_mongo5:27017,ondemand_playground_mongo6:27017,ondemand_playground_mongo7:27017/fluent?replicaSet=rs1&authSource=swarmlabplaygroundstats" const OPTS = { useNewUrlParser: true,