From 6622dbb56b4f92e5b0629d175aec5cc14661cf8d Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 22 Jan 2018 00:18:59 +0200 Subject: Meteor 1.6.0.1, Node 8.9.3, NPM 5.5.1, fibers 2.0.0 --- models/attachments.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'models/attachments.js') 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) { -- cgit v1.2.3-1-g7c22