Files
wekan/server/models/actions.js
T
Lauri Ojansivu 39f3c89b0a Fixed upgrade crash.
Thanks to poc-sm and Claude !

Fixes #6367
2026-06-06 02:53:58 +03:00

8 lines
219 B
JavaScript

import { Meteor } from 'meteor/meteor';
import Actions from '/models/actions';
import { ensureIndex } from '/server/lib/mongoStartup';
Meteor.startup(async () => {
await ensureIndex(Actions, { modifiedAt: -1 });
});