mirror of
https://github.com/wekan/wekan.git
synced 2026-02-20 15:04:07 +01:00
Migrate createIndex to createIndexAsync
This commit is contained in:
parent
60ecddfce4
commit
ca2083c858
32 changed files with 112 additions and 110 deletions
|
|
@ -259,8 +259,8 @@ if (Meteor.isServer) {
|
|||
|
||||
if (Meteor.isServer) {
|
||||
// Index for Team name.
|
||||
Meteor.startup(() => {
|
||||
Team._collection.createIndex({ teamDisplayName: 1 });
|
||||
Meteor.startup(async () => {
|
||||
await Team._collection.createIndexAsync({ teamDisplayName: 1 });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue