Fixed _ensureIndex to createIndex for MongoDB 5. Updated to latest Meteor beta.

This commit is contained in:
Lauri Ojansivu 2021-10-09 15:56:16 +03:00 committed by Denis Perov
parent 4bbe63365c
commit c926475eb1
29 changed files with 68 additions and 63 deletions

View file

@ -195,8 +195,8 @@ Checklists.mutations({
if (Meteor.isServer) {
Meteor.startup(() => {
Checklists._collection._ensureIndex({ modifiedAt: -1 });
Checklists._collection._ensureIndex({ cardId: 1, createdAt: 1 });
Checklists._collection.createIndex({ modifiedAt: -1 });
Checklists._collection.createIndex({ cardId: 1, createdAt: 1 });
});
Checklists.after.insert((userId, doc) => {