diff --git a/api/archives.js b/api/archives.js index 263f6cc..bb150f2 100755 --- a/api/archives.js +++ b/api/archives.js @@ -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(); diff --git a/api/articles.js b/api/articles.js index c9f6542..5637058 100755 --- a/api/articles.js +++ b/api/articles.js @@ -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 = {