Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Wientge committed Dec 16, 2014
2 parents bd4d18c + 64f0cfc commit 52b099e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions seo.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Meteor.startup(function() {
if(Meteor.isClient) {
SEO.config({
title: 'Meteor Vegas',
title: Meteor.settings.public.meetup.group_name,
meta: {
'description': 'A Bi-Monthly Meteor.js Meetup in Las Vegas, NV'
'description': Meteor.settings.public.meetup.group_info
},
og: {
'image': Meteor.absoluteUrl('share-image.png')
Expand Down
15 changes: 11 additions & 4 deletions server/methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ Meteor.methods({
}
},

fetchProfiles: function() {
console.log ( "Fetching Meetup Member Profiles ");
fetchProfiles: function(offset) {
var adminRoles = ["Organizer", "Co-Organizer"];

Meteor.call('MeetupAPI', 'getProfiles', {"group_urlname": group_urlname, "fields":"other_services"}, function(err, response) {
console.log('getProfiles.response', response);
offset = offset || 0;

console.log ( "Fetching Meetup Member Profiles offset", offset);

Meteor.call('MeetupAPI', 'getProfiles', {"offset": offset, "page": 200, "group_urlname": group_urlname, "fields":"other_services"}, function(err, response) {
console.log ( "getProfiles.response", response);
for (var i = 0, l = response.meta.count; i < l; i++) {
var node = response.results[i];

Expand Down Expand Up @@ -93,6 +96,10 @@ Meteor.methods({
}
}
}
// we surely habe more than 200 profiles, get the next page
if(response.meta.count == 200)
Meteor.call("fetchProfiles", offset + 1);

});
},

Expand Down

0 comments on commit 52b099e

Please sign in to comment.