Skip to content

Commit

Permalink
Step 12.1: Add options to the parties publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent 9436cdf commit d293cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imports/api/parties/publish.js
Expand Up @@ -3,7 +3,7 @@ import { Meteor } from 'meteor/meteor';
import { Parties } from './collection';

if (Meteor.isServer) {
Meteor.publish('parties', function() {
Meteor.publish('parties', function(options) {
const selector = {
$or: [{
// the public parties
Expand All @@ -26,6 +26,6 @@ if (Meteor.isServer) {
}]
};

return Parties.find(selector);
return Parties.find(selector, options);
});
}

0 comments on commit d293cbe

Please sign in to comment.