Browse Source

watcher

master
zeus 4 years ago
parent
commit
5bce84f2a3
  1. 19
      swarmlab-app/src/run/app.js

19
swarmlab-app/src/run/app.js

@ -205,18 +205,13 @@ global.online='ob';
(async() => { (async() => {
var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto var token = "d2539e5a7ae1f9f1b0eb2b8f22ca467a86d28407"; // desto
var resdata = await getpipelines(token,pathfile) var resdata = await getpipelines(token,pathfile)
console.log('info', JSON.stringify(resdata)); var resob = resdata.info.data
/* var indexfind = global.pipelines.findIndex(x => x.res25swarmlabname==resdata.info.data.res25swarmlabname);
if(isvalid.action == 'ok'){
console.log("Authserver ok ", s.id + ' - ' + token); indexfind === -1 ? global.pipelines.push({resob}) : console.log("object already exists")
global.SOCKET.user = isvalid.user
global.SOCKET.scope = isvalid.scope // space delimeter //console.log('info', JSON.stringify(resdata));
global.SOCKET.token = isvalid.token console.log('info', JSON.stringify(global.pipelines));
s.auth = true;
}else{
console.log("Authserver no ", s.id + ' - ' + token);
}
*/
})() })()
}) })
.on('addDir', function(path) { .on('addDir', function(path) {

Loading…
Cancel
Save