removed a couple of annoying console.log logs

This commit is contained in:
Henry Oswald 2014-06-17 10:26:56 +01:00
parent af7a615fd4
commit 3350b99ccf
2 changed files with 1 additions and 3 deletions

View file

@ -18,7 +18,6 @@ module.exports = UserController =
getPersonalInfo: (req, res, next = (error) ->) -> getPersonalInfo: (req, res, next = (error) ->) ->
UserGetter.getUser req.params.user_id, { _id: true, first_name: true, last_name: true, email: true}, (error, user) -> UserGetter.getUser req.params.user_id, { _id: true, first_name: true, last_name: true, email: true}, (error, user) ->
logger.log user_id: req.params.user_id, "reciving request for getting users personal info" logger.log user_id: req.params.user_id, "reciving request for getting users personal info"
console.log user
return next(error) if error? return next(error) if error?
return res.send(404) if !user? return res.send(404) if !user?
UserController.sendFormattedPersonalInfo(user, res, next) UserController.sendFormattedPersonalInfo(user, res, next)
@ -42,7 +41,6 @@ module.exports = UserController =
sendFormattedPersonalInfo: (user, res, next = (error) ->) -> sendFormattedPersonalInfo: (user, res, next = (error) ->) ->
UserController._formatPersonalInfo user, (error, info) -> UserController._formatPersonalInfo user, (error, info) ->
return next(error) if error? return next(error) if error?
console.log info
res.send JSON.stringify(info) res.send JSON.stringify(info)
_formatPersonalInfo: (user, callback = (error, info) ->) -> _formatPersonalInfo: (user, callback = (error, info) ->) ->

View file

@ -47,7 +47,7 @@ define ["libs/algolia", "libs/angular", "libs/angular-autocomplete/angular-autoc
$scope.updateInstitutionsList = (a)-> $scope.updateInstitutionsList = (a)->
Institutions.search $scope.userInfoForm.institution, (err, response)-> Institutions.search $scope.userInfoForm.institution, (err, response)->
$scope.institutions = _.map response.hits, (institution)-> $scope.institutions = _.map response.hits, (institution)->
"#{institution.name} <span class='muted'>#{institution.domain}</span>" "#{institution.name} (<span class='muted'>#{institution.domain}</span>)"