mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
Keep the first actual observation of each UTC day, preserve unknown estimates, and bound history reads. Verify retry and concurrent capture behavior with MongoDB and reader permissions with Chromium. Thanks to xet7 !
15 lines
573 B
JavaScript
15 lines
573 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
import { Mongo } from 'meteor/mongo';
|
|
|
|
// Server methods own validation, authorization, revisions and lifecycle snapshots.
|
|
const ScrumSprints = new Mongo.Collection('scrumSprints');
|
|
if (Meteor.isServer) {
|
|
const { ensureIndex } = require('/server/lib/mongoStartup');
|
|
ScrumSprints.deny({ insert: () => true, update: () => true, remove: () => true });
|
|
Meteor.startup(async () => {
|
|
await ensureIndex(ScrumSprints, { boardId: 1 });
|
|
await ensureIndex(ScrumSprints, { state: 1, _id: 1 });
|
|
});
|
|
}
|
|
export default ScrumSprints;
|