diff options
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) { |