diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-01-22 00:18:59 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-01-22 00:18:59 +0200 |
commit | 6622dbb56b4f92e5b0629d175aec5cc14661cf8d (patch) | |
tree | 06521863e11403da726af512ccb8a323be4b376f /models/attachments.js | |
parent | 7963171058995fadb4862592a28a3f7368feec63 (diff) | |
download | wekan-6622dbb56b4f92e5b0629d175aec5cc14661cf8d.tar.gz wekan-6622dbb56b4f92e5b0629d175aec5cc14661cf8d.tar.bz2 wekan-6622dbb56b4f92e5b0629d175aec5cc14661cf8d.zip |
Meteor 1.6.0.1, Node 8.9.3, NPM 5.5.1, fibers 2.0.0
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 560bec99..a966e250 100644 --- a/models/attachments.js +++ b/models/attachments.js @@ -1,3 +1,5 @@ +try { + Attachments = new FS.Collection('attachments', { stores: [ @@ -25,6 +27,8 @@ Attachments = new FS.Collection('attachments', { ], }); +} catch (err) { console.log(err); throw err; } + if (Meteor.isServer) { Attachments.allow({ insert(userId, doc) { |