mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
9 lines
282 B
JavaScript
9 lines
282 B
JavaScript
import { MongoInternals } from 'meteor/mongo';
|
|
|
|
export const createBucket = bucketName => {
|
|
const options = bucketName ? { bucketName } : void 0;
|
|
return new MongoInternals.NpmModule.GridFSBucket(
|
|
MongoInternals.defaultRemoteCollectionDriver().mongo.db,
|
|
options,
|
|
);
|
|
};
|