mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
12 lines
321 B
TypeScript
12 lines
321 B
TypeScript
import { check } from 'meteor/check';
|
|
import { Meteor } from 'meteor/meteor';
|
|
import { Calls } from '../../../imports/collections/calls';
|
|
|
|
Meteor.methods({ 'calls-count': callsCount });
|
|
|
|
function callsCount(selector: any = {}): number {
|
|
check(selector, Object);
|
|
|
|
return Calls.collection.find(selector).count();
|
|
}
|