Migrate createIndex to createIndexAsync

This commit is contained in:
Harry Adel 2026-01-24 01:55:29 +02:00
parent 60ecddfce4
commit ca2083c858
32 changed files with 112 additions and 110 deletions

View file

@ -292,9 +292,9 @@ if (Meteor.isServer) {
if (Meteor.isServer) {
// Index for Organization name.
Meteor.startup(() => {
// Org._collection.createIndex({ name: -1 });
Org._collection.createIndex({ orgDisplayName: 1 });
Meteor.startup(async () => {
// Org._collection.createIndexAsync({ name: -1 });
await Org._collection.createIndexAsync({ orgDisplayName: 1 });
});
}