mirror of
https://github.com/wekan/wekan.git
synced 2026-02-15 20:48:08 +01:00
Migrate createIndex to createIndexAsync
This commit is contained in:
parent
60ecddfce4
commit
ca2083c858
32 changed files with 112 additions and 110 deletions
|
|
@ -561,10 +561,10 @@ Meteor.methods({
|
|||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
Lists._collection.rawCollection().createIndex({ modifiedAt: -1 });
|
||||
Lists._collection.rawCollection().createIndex({ boardId: 1 });
|
||||
Lists._collection.rawCollection().createIndex({ archivedAt: -1 });
|
||||
Meteor.startup(async () => {
|
||||
await Lists._collection.rawCollection().createIndex({ modifiedAt: -1 });
|
||||
await Lists._collection.rawCollection().createIndex({ boardId: 1 });
|
||||
await Lists._collection.rawCollection().createIndex({ archivedAt: -1 });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue