mirror of
https://github.com/wekan/wekan.git
synced 2026-02-26 01:44:07 +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;
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
/*
|
||||
|
||||
Avatars = new FS.Collection('avatars', {
|
||||
stores: [new FS.Store.GridFS('avatars')],
|
||||
filter: {
|
||||
|
|
@ -27,3 +29,4 @@ Avatars.files.before.insert((userId, doc) => {
|
|||
});
|
||||
|
||||
export default Avatars;
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
// Date of 7 days ago
|
||||
let lastWeek = new Date();
|
||||
lastWeek.setDate(lastWeek.getDate() - 7);
|
||||
|
||||
presences.remove({ ttl: { $lte: lastWeek } });
|
||||
|
||||
// Create index for serverId that is queried often
|
||||
presences._collection._ensureIndex({ serverId: -1 });
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue