Fix lint errors back to eslint requirements.

This commit is contained in:
Lauri Ojansivu 2018-05-18 15:20:20 +03:00
parent ef99e6a6b1
commit 9b465bc98b
3 changed files with 96 additions and 96 deletions

View file

@ -1,4 +1,4 @@
Attachments = new FS.Collection('attachments', {
Attachments = new FS.Collection('attachments', {
stores: [
// XXX Add a new store for cover thumbnails so we don't load big images in
@ -23,10 +23,10 @@
},
}),
],
});
});
if (Meteor.isServer) {
if (Meteor.isServer) {
Attachments.allow({
insert(userId, doc) {
return allowIsBoardMember(userId, Boards.findOne(doc.boardId));
@ -51,11 +51,11 @@
fetch: ['boardId'],
});
}
}
// XXX Enforce a schema for the Attachments CollectionFS
// XXX Enforce a schema for the Attachments CollectionFS
if (Meteor.isServer) {
if (Meteor.isServer) {
Attachments.files.after.insert((userId, doc) => {
// If the attachment doesn't have a source field
// or its source is different than import
@ -87,4 +87,4 @@
attachmentId: doc._id,
});
});
}
}