diff --git a/routes/datasets.js b/routes/datasets.js index f2de11e..5eb83bf 100644 --- a/routes/datasets.js +++ b/routes/datasets.js @@ -34,7 +34,7 @@ router.get('/germplasm',function(req,res,next){ data.push(germplasm.germplasmDbId) //Object.assign(data,germplasm.result.data) }) - console.log({data}) + //console.log({data}) return {type:"germplasm",data} } // relatedGermplasms().then(function(callRes){ @@ -50,12 +50,12 @@ router.get(`/${type}`,function(req,res,next){ var call=list[type] formatResponse=function(response){ let data=[] - console.log(response.result.data) + //console.log(response.result.data) response.result.data.forEach(function(item){ data.push(item[`${type}DbId`]) //Object.assign(data,germplasm.result.data) }) - console.log({data}) + //console.log({data}) return {type:type,data} } // relatedGermplasms().then(function(callRes){ @@ -71,12 +71,12 @@ router.get(`/${type}`,function(req,res,next){ var call=list[type] formatResponse=function(response){ let data=[] - console.log(response.result.data) + //console.log(response.result.data) response.result.data.forEach(function(item){ data.push(item[`${type}DbId`]) //Object.assign(data,germplasm.result.data) }) - console.log({data}) + //console.log({data}) return {type:type,data} } // relatedGermplasms().then(function(callRes){ diff --git a/routes/index.js b/routes/index.js index c137b1d..4a60d67 100755 --- a/routes/index.js +++ b/routes/index.js @@ -71,7 +71,6 @@ router.get('/', function(req, res, next) { res.render('pheno',result ); }).catch(function(err){ - console.log("Error - /index: "+err[0]); errMsg="Router index | '/'' - Error retrieving data for render: err" debug_std(errMsg+" - "+err); if (debug_full.enabled) debug_full(console.trace(errMsg+" - "+err));