Removed extra console.logs from API files

pull/3/head
Nishant Arora 8 years ago
parent b94be61487
commit 1cbbae1342

@ -19,8 +19,6 @@ module.exports = function(app){
Archives.forge({id: req.params.id})
.fetch()
.then(function (archive) {
console.log("ARCHIVE=================================");
console.log(archive);
Users.forge({id: archive.attributes.user_id}).fetch().then(function(user){
archiveObj = archive.toJSON();
userObj = user.toJSON();

@ -203,14 +203,11 @@ module.exports = function(app){
Articles.forge({id: req.params.id})
.fetch()
.then(function (article) {
console.log("Found article. Finding topic");
Topics.forge({id: article.attributes.topic_id}).fetch().then(function(topic){
console.log("Found topic. Finding user");
articleObj = article.toJSON();
topicObj = topic.toJSON();
articleObj.topic = topicObj;
}).then(function(){
console.log("Found user. Moving forward");
Users.forge({id: articleObj.user_id}).fetch().then(function(user){
userObj = user.toJSON();
articleObj.user = {

Loading…
Cancel
Save