mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Fix lint errors back to eslint requirements.
This commit is contained in:
parent
ef99e6a6b1
commit
9b465bc98b
3 changed files with 96 additions and 96 deletions
|
@ -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,
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue