From 1cbbae13425e08380658cd528a5a7b0e31929920 Mon Sep 17 00:00:00 2001 From: Nishant Arora Date: Wed, 11 Jan 2017 21:27:26 +0530 Subject: [PATCH] Removed extra console.logs from API files --- api/archives.js | 2 -- api/articles.js | 3 --- 2 files changed, 5 deletions(-) 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 = {