Improved rest api calls

This commit is contained in:
vjrj 2018-06-19 00:18:18 +02:00
parent 5b3d86e6a5
commit 5642b106d4
4 changed files with 45 additions and 8 deletions

View file

@ -12,6 +12,7 @@ function geo(doc) {
export function subscriptionsInsert(doc, userId, type) {
check(doc, {
_id: Match.Maybe(Meteor.Collection.ObjectID),
location: Match.ObjectIncluding({ lat: Number, lon: Number }),
distance: Number
});