mirror of
https://github.com/wekan/wekan.git
synced 2026-02-11 10:44:20 +01:00
Migrate createIndex to createIndexAsync
This commit is contained in:
parent
60ecddfce4
commit
ca2083c858
32 changed files with 112 additions and 110 deletions
|
|
@ -217,10 +217,10 @@ function publishChekListUncompleted(userId, doc) {
|
|||
|
||||
// Activities
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
ChecklistItems._collection.createIndex({ modifiedAt: -1 });
|
||||
ChecklistItems._collection.createIndex({ checklistId: 1 });
|
||||
ChecklistItems._collection.createIndex({ cardId: 1 });
|
||||
Meteor.startup(async () => {
|
||||
await ChecklistItems._collection.createIndexAsync({ modifiedAt: -1 });
|
||||
await ChecklistItems._collection.createIndexAsync({ checklistId: 1 });
|
||||
await ChecklistItems._collection.createIndexAsync({ cardId: 1 });
|
||||
});
|
||||
|
||||
ChecklistItems.after.update((userId, doc, fieldNames) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue