mirror of
https://github.com/wekan/wekan.git
synced 2026-02-28 19:00:17 +01:00
Upgrade to Meteor 2.3.4
Thanks to xet7 !
This commit is contained in:
parent
e6dc20f6c7
commit
40265144af
316 changed files with 5049 additions and 32549 deletions
|
|
@ -1,3 +1,5 @@
|
|||
/*
|
||||
|
||||
export const AttachmentStorage = new Mongo.Collection(
|
||||
'cfs_gridfs.attachments.files',
|
||||
);
|
||||
|
|
@ -24,7 +26,7 @@ if (localFSStore) {
|
|||
const Grid = Npm.require('gridfs-stream');
|
||||
// calulate the absolute path here, because FS.Store.FileSystem didn't expose the aboslutepath or FS.Store didn't expose api calls :(
|
||||
let pathname = localFSStore;
|
||||
/*eslint camelcase: ["error", {allow: ["__meteor_bootstrap__"]}] */
|
||||
// eslint camelcase: ["error", {allow: ["__meteor_bootstrap__"]}]
|
||||
|
||||
if (!pathname && __meteor_bootstrap__ && __meteor_bootstrap__.serverDir) {
|
||||
pathname = path.join(
|
||||
|
|
@ -180,6 +182,8 @@ Attachments = new FS.Collection('attachments', {
|
|||
stores: [store],
|
||||
});
|
||||
|
||||
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
Attachments.files._ensureIndex({ cardId: 1 });
|
||||
|
|
@ -266,3 +270,4 @@ if (Meteor.isServer) {
|
|||
}
|
||||
|
||||
export default Attachments;
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue