mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 18:30:13 +01: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: [
|
stores: [
|
||||||
|
|
||||||
// XXX Add a new store for cover thumbnails so we don't load big images in
|
// 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({
|
Attachments.allow({
|
||||||
insert(userId, doc) {
|
insert(userId, doc) {
|
||||||
return allowIsBoardMember(userId, Boards.findOne(doc.boardId));
|
return allowIsBoardMember(userId, Boards.findOne(doc.boardId));
|
||||||
|
|
@ -51,11 +51,11 @@
|
||||||
|
|
||||||
fetch: ['boardId'],
|
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) => {
|
Attachments.files.after.insert((userId, doc) => {
|
||||||
// If the attachment doesn't have a source field
|
// If the attachment doesn't have a source field
|
||||||
// or its source is different than import
|
// or its source is different than import
|
||||||
|
|
@ -87,4 +87,4 @@
|
||||||
attachmentId: doc._id,
|
attachmentId: doc._id,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue