mirror of
https://github.com/wekan/wekan.git
synced 2026-02-10 10:14:21 +01:00
Merge pull request #6093 from harryadel/createIndex-migration
Migrate createIndex to createIndexAsync
This commit is contained in:
commit
25eedd187e
32 changed files with 112 additions and 110 deletions
|
|
@ -273,9 +273,9 @@ if (Meteor.isServer) {
|
|||
},
|
||||
});
|
||||
|
||||
Meteor.startup(() => {
|
||||
Checklists._collection.createIndex({ modifiedAt: -1 });
|
||||
Checklists._collection.createIndex({ cardId: 1, createdAt: 1 });
|
||||
Meteor.startup(async () => {
|
||||
await Checklists._collection.createIndexAsync({ modifiedAt: -1 });
|
||||
await Checklists._collection.createIndexAsync({ cardId: 1, createdAt: 1 });
|
||||
});
|
||||
|
||||
Checklists.after.insert((userId, doc) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue