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

@ -218,8 +218,8 @@ if (Meteor.isServer) {
if (Meteor.isServer) {
// Index for Organization name.
Meteor.startup(() => {
// Org._collection._ensureIndex({ name: -1 });
Org._collection._ensureIndex({ orgDisplayName: 1 });
// Org._collection.createIndex({ name: -1 });
Org._collection.createIndex({ orgDisplayName: 1 });
});
}