mirror of
https://github.com/wekan/wekan.git
synced 2026-03-06 05:40:16 +01:00
fixup! Ref: Attachments to use modern gridfs (rm localstore)
This commit is contained in:
parent
e657e5e382
commit
90d64db52c
1 changed files with 4 additions and 1 deletions
|
|
@ -5,7 +5,10 @@ import { createOnAfterUpload } from './lib/fsHooks/createOnAfterUpload';
|
||||||
import { createInterceptDownload } from './lib/fsHooks/createInterceptDownload';
|
import { createInterceptDownload } from './lib/fsHooks/createInterceptDownload';
|
||||||
import { createOnAfterRemove } from './lib/fsHooks/createOnAfterRemove';
|
import { createOnAfterRemove } from './lib/fsHooks/createOnAfterRemove';
|
||||||
|
|
||||||
const attachmentBucket = createBucket('attachments');
|
let attachmentBucket;
|
||||||
|
if (Meteor.isServer) {
|
||||||
|
attachmentBucket = createBucket('attachments');
|
||||||
|
}
|
||||||
|
|
||||||
const insertActivity = (fileObj, activityType) =>
|
const insertActivity = (fileObj, activityType) =>
|
||||||
Activities.insert({
|
Activities.insert({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue