Lint fix
This commit is contained in:
parent
c7a2b9aab3
commit
9c45e0d593
1 changed files with 5 additions and 6 deletions
|
|
@ -3,18 +3,18 @@
|
||||||
import { Mongo } from 'meteor/mongo';
|
import { Mongo } from 'meteor/mongo';
|
||||||
import SimpleSchema from 'simpl-schema';
|
import SimpleSchema from 'simpl-schema';
|
||||||
|
|
||||||
const Subscriptions = new Mongo.Collection('subscriptions');
|
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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue