This commit is contained in:
vjrj 2017-12-13 06:57:07 +01:00
parent c7a2b9aab3
commit 9c45e0d593

View file

@ -8,13 +8,13 @@ const Subscriptions = new Mongo.Collection('subscriptions');
Subscriptions.allow({ Subscriptions.allow({
insert: () => false, insert: () => false,
update: () => false, update: () => false,
remove: () => false, remove: () => false
}); });
Subscriptions.deny({ Subscriptions.deny({
insert: () => true, insert: () => true,
update: () => true, update: () => true,
remove: () => true, remove: () => true
}); });
@ -41,9 +41,8 @@ Subscriptions.schema = new SimpleSchema({
location: Object, location: Object,
'location.lat': SimpleSchema.Integer, 'location.lat': SimpleSchema.Integer,
'location.lon': SimpleSchema.Integer, 'location.lon': SimpleSchema.Integer,
distance: Number, distance: Number
} });
);
Subscriptions.attachSchema(Subscriptions.schema); Subscriptions.attachSchema(Subscriptions.schema);