From 408812b265b18a76a3abdbcb958875b0d6c78652 Mon Sep 17 00:00:00 2001 From: idoctnef Date: Thu, 6 Oct 2016 21:23:23 +0200 Subject: [PATCH] comments inside travel json --- config.js | 8 +++---- controllers/travelController.js | 37 +++++++++++++++++++-------------- server.js | 2 +- 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/config.js b/config.js index 7b004bc..d0108f3 100644 --- a/config.js +++ b/config.js @@ -1,8 +1,8 @@ module.exports = { - 'secret': process.env.SECRET,// production version - 'database': process.env.MONGO_DSN, - /*'secret': 'secretfortoken',// local version - 'database': 'mongodb://localhost/comunalcar',*/ + /*'secret': process.env.SECRET,// production version + 'database': process.env.MONGO_DSN,*/ + 'secret': 'secretfortoken',// local version + 'database': 'mongodb://localhost/comunalcar', "port" : process.env.PORT || 3000 }; diff --git a/controllers/travelController.js b/controllers/travelController.js index e215822..770b68c 100644 --- a/controllers/travelController.js +++ b/controllers/travelController.js @@ -135,22 +135,7 @@ exports.addJoin = function(req, res) { }; exports.doUnjoin = function(req, res) { - /*joinModel.find({ - travelId: req.params.travelId - }, function(err, joins) { - for(var i=0; i