Commit 1415a7cb07b6d1a1c4fd0ce9529a312bd5919d59
1 parent
e1ee5105
Exists in
production
Adding missing fields
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
www/js/controllers.js
... | ... | @@ -128,7 +128,6 @@ angular.module('confjuvapp.controllers', []) |
128 | 128 | $scope.loginCallback(resp.data.user.private_token); |
129 | 129 | }); |
130 | 130 | }, function(err) { |
131 | - console.log(err); | |
132 | 131 | $scope.closeModal(); |
133 | 132 | var msg = 'Erro ao efetuar login: '; |
134 | 133 | if (err.hasOwnProperty('data') && err.data.hasOwnProperty('message')) { |
... | ... | @@ -1384,7 +1383,7 @@ angular.module('confjuvapp.controllers', []) |
1384 | 1383 | $scope.loadProfile = function() { |
1385 | 1384 | $scope.loading = true; |
1386 | 1385 | |
1387 | - var params = '?private_token=' + ConfJuvAppUtils.getPrivateToken() + '&t=' + (new Date().getTime()) + '&fields=vote_count,comments_count,following_articles_count,articles_count,id,identifier,name,region,user,login,full_name,orientacao_sexual,identidade_genero,transgenero,etnia,membro_conselho,points,level,gamification_plugin_level_percent', | |
1386 | + var params = '?private_token=' + ConfJuvAppUtils.getPrivateToken() + '&t=' + (new Date().getTime()) + '&fields=vote_count,comments_count,following_articles_count,articles_count,id,identifier,name,region,user,login,full_name,orientacao_sexual,identidade_genero,transgenero,etnia,membro_conselho,points,level,gamification_plugin_level_percent,region.parent_id', | |
1388 | 1387 | path = 'people/me/' + params; |
1389 | 1388 | |
1390 | 1389 | $http.get(ConfJuvAppUtils.pathTo(path)) |
... | ... | @@ -1593,7 +1592,7 @@ angular.module('confjuvapp.controllers', []) |
1593 | 1592 | timeout: defaultTimeout |
1594 | 1593 | }; |
1595 | 1594 | |
1596 | - var path = 'articles?private_token=' + $scope.token + '&fields=title,image,body,abstract,id,tag_list,categories,created_by,author.name,votes_count,comments_count,followers_count&content_type=ProposalsDiscussionPlugin::Proposal&_=' + (new Date().getTime()) + '&author_id=' + ConfJuvAppConfig.noosferoNationalPhaseProfileId + '&per_page=400&parent_id[]='; | |
1595 | + var path = 'articles?private_token=' + $scope.token + '&fields=title,body,id,categories,created_by,author.name,votes_count,comments_count,followers_count&content_type=ProposalsDiscussionPlugin::Proposal&_=' + (new Date().getTime()) + '&author_id=' + ConfJuvAppConfig.noosferoNationalPhaseProfileId + '&per_page=400&parent_id[]='; | |
1597 | 1596 | |
1598 | 1597 | for (var i = 0; i < $scope.topics.length; i++) { |
1599 | 1598 | path += '&parent_id[]=' + $scope.topics[i].id; | ... | ... |