Seeking insight on why I am unable to access data within the venue collection from a specific page. I have successfully accessed the events collection, but the venue collection remains inaccessible. Here is the snippet of code in question:
//Controller
UserController = AppController.extend({
waitOn: function() {
return this.subscribe('events');
return this.subscribe('users');
return this.subscribe('venues');
},
data: {
venues: Venues.find({}),
events: Events.find({}),
users: Meteor.users.find()
}
});
UserController.helpers({
'myEvents': function() {
var organizerId = Accounts.userId();
return Events.find({organizerId: organizerId})
},
'myVenues': function() {
return Venues.find({})
}
});
The publish & permission files are identical for both events and venues. The controller is correctly routed to the designated page, and the venue collection is accessible from pages using other controllers.
Your insights are greatly appreciated!