mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
removed a couple of annoying console.log logs
This commit is contained in:
@@ -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) ->) ->
|
||||
|
||||
@@ -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} <span class='muted'>#{institution.domain}</span>"
|
||||
"#{institution.name} (<span class='muted'>#{institution.domain}</span>)"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user