Meteor 1.6.0.1, Node 8.9.3, NPM 5.5.1, fibers 2.0.0

This commit is contained in:
Lauri Ojansivu 2018-01-22 00:18:59 +02:00
parent 7963171058
commit 6622dbb56b
7 changed files with 82 additions and 70 deletions

View file

@ -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) {