diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-02-28 21:19:50 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-02-28 21:19:50 +0200 |
commit | 14e2bfd1bfc7ac6bb7b14729b414a8708738af09 (patch) | |
tree | 4d1cfe68b5c97b2f0df22f43689c34cc97d6b5e5 /models/attachments.js | |
parent | d5bc66c9a49a16aa1c0361e3ff46453b1bcb348b (diff) | |
parent | 3c49e2d0edec19eff4f87b0fcc127f924af193fc (diff) | |
download | wekan-14e2bfd1bfc7ac6bb7b14729b414a8708738af09.tar.gz wekan-14e2bfd1bfc7ac6bb7b14729b414a8708738af09.tar.bz2 wekan-14e2bfd1bfc7ac6bb7b14729b414a8708738af09.zip |
Merge branch 'wekan-perf-improvements' of https://github.com/justinr1234/wekan into justinr1234-wekan-perf-improvements
Diffstat (limited to 'models/attachments.js')
-rw-r--r-- | models/attachments.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/attachments.js b/models/attachments.js index 3da067de..f870861b 100644 --- a/models/attachments.js +++ b/models/attachments.js @@ -27,6 +27,10 @@ Attachments = new FS.Collection('attachments', { if (Meteor.isServer) { + Meteor.startup(() => { + Attachments.files._ensureIndex({ cardId: 1 }); + }); + Attachments.allow({ insert(userId, doc) { return allowIsBoardMember(userId, Boards.findOne(doc.boardId)); |