rdio-scanner/server/imports/publications/calls.ts
Chrystian Huot 7c2ee69151 first commit
2019-06-12 11:43:21 -04:00

12 lines
409 B
TypeScript

import { check } from 'meteor/check';
import { Meteor } from 'meteor/meteor';
import { Calls } from '../../../imports/collections/calls';
import { Call } from '../../../imports/models/call';
Meteor.publish('calls', function calls(selector: any = {}, options: any = {}): Mongo.Cursor<Call> {
check (selector, Object);
check (options, Object);
return Calls.collection.find(selector, options);
});