Skip to content

Commit

Permalink
Removes console.logs from most of the calls #31
Browse files Browse the repository at this point in the history
  • Loading branch information
netbofia committed Jul 9, 2019
1 parent 4828b48 commit f1e3591
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions routes/datasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand All @@ -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){
Expand All @@ -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){
Expand Down
1 change: 0 additions & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit f1e3591

Please sign in to comment.