summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-01-22 00:18:59 +0200
committerLauri Ojansivu <x@xet7.org>2018-01-22 00:18:59 +0200
commit6622dbb56b4f92e5b0629d175aec5cc14661cf8d (patch)
tree06521863e11403da726af512ccb8a323be4b376f /models
parent7963171058995fadb4862592a28a3f7368feec63 (diff)
downloadwekan-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')
-rw-r--r--models/attachments.js4
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) {