Some fixes to make WeKan working after Meteor 3 related router upgrades.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2026-01-14 01:11:42 +02:00
parent c8bdb95b38
commit 984a2dcec1
2 changed files with 5 additions and 6 deletions

View file

@ -74,12 +74,12 @@ Activities.before.insert((userId, doc) => {
doc.modifiedAt = doc.createdAt;
});
Activities.after.insert((userId, doc) => {
const activity = Activities._transform(doc);
RulesHelper.executeRules(activity);
});
if (Meteor.isServer) {
Activities.after.insert((userId, doc) => {
const activity = Activities._transform(doc);
RulesHelper.executeRules(activity);
});
// For efficiency create indexes on the date of creation, and on the date of
// creation in conjunction with the card or board id, as corresponding views
// are largely used in the App. See #524.

View file

@ -1,5 +1,4 @@
import { ReactiveCache } from '/imports/reactiveCache';
import { Settings } from '../../models/settings';
Meteor.publish('globalwebhooks', () => {
const boardId = Integrations.Const.GLOBAL_WEBHOOK_ID;