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

@ -53,7 +53,9 @@ if (__meteor_runtime_config__.SANDSTORM) {
// Maps tokens to currently-waiting login method calls.
if (Package["accounts-base"]) {
Meteor.users.createIndex("services.sandstorm.id", {unique: 1, sparse: 1});
Meteor.startup(async () => {
await Meteor.users.createIndexAsync("services.sandstorm.id", {unique: 1, sparse: 1});
});
}
Meteor.onConnection(function (connection) {