fixup! Ref: Attachments to use modern gridfs (rm localstore)

This commit is contained in:
David Arnold 2020-09-16 14:39:30 -05:00
parent e657e5e382
commit 90d64db52c
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08

View file

@ -5,7 +5,10 @@ import { createOnAfterUpload } from './lib/fsHooks/createOnAfterUpload';
import { createInterceptDownload } from './lib/fsHooks/createInterceptDownload';
import { createOnAfterRemove } from './lib/fsHooks/createOnAfterRemove';
const attachmentBucket = createBucket('attachments');
let attachmentBucket;
if (Meteor.isServer) {
attachmentBucket = createBucket('attachments');
}
const insertActivity = (fileObj, activityType) =>
Activities.insert({