mirror of
https://github.com/wekan/wekan.git
synced 2026-01-24 18:26:10 +01:00
Migrate createIndex to createIndexAsync
This commit is contained in:
parent
60ecddfce4
commit
ca2083c858
32 changed files with 112 additions and 110 deletions
|
|
@ -73,9 +73,9 @@ OrgUser.attachSchema(
|
|||
|
||||
if (Meteor.isServer) {
|
||||
// Index for Organization User.
|
||||
Meteor.startup(() => {
|
||||
OrgUser._collection.createIndex({ orgId: -1 });
|
||||
OrgUser._collection.createIndex({ orgId: -1, userId: -1 });
|
||||
Meteor.startup(async () => {
|
||||
await OrgUser._collection.createIndexAsync({ orgId: -1 });
|
||||
await OrgUser._collection.createIndexAsync({ orgId: -1, userId: -1 });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue