Permalink
Browse files

Step 13.1: Add options to the parties publication

1 parent 6fe7998 commit 569474e3d5005005a49e86702680aaebc3d62979 @kamilkisiela kamilkisiela committed with DAB0mB Sep 22, 2016
Showing with 6 additions and 2 deletions.
  1. +6 −2 server/imports/publications/parties.ts
@@ -1,8 +1,12 @@
import { Meteor } from 'meteor/meteor';
import { Parties } from '../../../both/collections/parties.collection';
-Meteor.publish('parties', function() {
- return Parties.find(buildQuery.call(this));
+interface Options {
+ [key: string]: any;
+}
+
+Meteor.publish('parties', function(options: Options) {
+ return Parties.find(buildQuery.call(this), options);
});
Meteor.publish('party', function(partyId: string) {

0 comments on commit 569474e

Please sign in to comment.