More work with subscriptions

This commit is contained in:
vjrj 2017-12-17 02:00:53 +01:00
parent 316e14f0ea
commit 918103a17b
12 changed files with 29 additions and 14 deletions

View file

@ -18,7 +18,7 @@ Meteor.methods({
},
'subscriptions.update': function subscriptionsUpdate(doc) {
check(doc, {
_id: String,
_id: Meteor.Collection.ObjectID,
location: Match.ObjectIncluding({ lat: Number, lon: Number }),
distance: Number
});