summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-01-25 07:31:42 +0200
committerLauri Ojansivu <x@xet7.org>2018-01-25 07:31:42 +0200
commit188341cf50d25f5ed6e05197681b8125018ec1aa (patch)
tree2b0eb6a10ce1228ee2be8510fc3add0b49486055 /models
parentaf119ff7c096e6cb077ba40e1eb0df8d3cc09821 (diff)
parent91e738bd32366c3bfee327ad405783984ff1beb0 (diff)
downloadwekan-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.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) {