From 3350b99ccfebc50d57adeb1b0f6a25ab51c518b9 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 17 Jun 2014 10:26:56 +0100 Subject: [PATCH] removed a couple of annoying console.log logs --- services/web/app/coffee/Features/User/UserInfoController.coffee | 2 -- services/web/public/coffee/UserDetailsUpdater.coffee | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/services/web/app/coffee/Features/User/UserInfoController.coffee b/services/web/app/coffee/Features/User/UserInfoController.coffee index 52d2b46a95..cc2a6b2a15 100644 --- a/services/web/app/coffee/Features/User/UserInfoController.coffee +++ b/services/web/app/coffee/Features/User/UserInfoController.coffee @@ -18,7 +18,6 @@ module.exports = UserController = getPersonalInfo: (req, res, next = (error) ->) -> 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" - console.log user return next(error) if error? return res.send(404) if !user? UserController.sendFormattedPersonalInfo(user, res, next) @@ -42,7 +41,6 @@ module.exports = UserController = sendFormattedPersonalInfo: (user, res, next = (error) ->) -> UserController._formatPersonalInfo user, (error, info) -> return next(error) if error? - console.log info res.send JSON.stringify(info) _formatPersonalInfo: (user, callback = (error, info) ->) -> diff --git a/services/web/public/coffee/UserDetailsUpdater.coffee b/services/web/public/coffee/UserDetailsUpdater.coffee index bfcdbe4127..348f1450b0 100644 --- a/services/web/public/coffee/UserDetailsUpdater.coffee +++ b/services/web/public/coffee/UserDetailsUpdater.coffee @@ -47,7 +47,7 @@ define ["libs/algolia", "libs/angular", "libs/angular-autocomplete/angular-autoc $scope.updateInstitutionsList = (a)-> Institutions.search $scope.userInfoForm.institution, (err, response)-> $scope.institutions = _.map response.hits, (institution)-> - "#{institution.name} #{institution.domain}" + "#{institution.name} (#{institution.domain})"