diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-01-25 07:31:42 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-01-25 07:31:42 +0200 |
commit | 188341cf50d25f5ed6e05197681b8125018ec1aa (patch) | |
tree | 2b0eb6a10ce1228ee2be8510fc3add0b49486055 /models | |
parent | af119ff7c096e6cb077ba40e1eb0df8d3cc09821 (diff) | |
parent | 91e738bd32366c3bfee327ad405783984ff1beb0 (diff) | |
download | wekan-188341cf50d25f5ed6e05197681b8125018ec1aa.tar.gz wekan-188341cf50d25f5ed6e05197681b8125018ec1aa.tar.bz2 wekan-188341cf50d25f5ed6e05197681b8125018ec1aa.zip |
Merge remote-tracking branch 'upstream/devel' into devel
Diffstat (limited to 'models')
-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) { |