mirror of
https://github.com/wekan/wekan.git
synced 2026-01-27 11:46: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
|
|
@ -232,9 +232,9 @@ function customFieldEdit(userId, doc) {
|
|||
}
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
CustomFields._collection.createIndex({ modifiedAt: -1 });
|
||||
CustomFields._collection.createIndex({ boardIds: 1 });
|
||||
Meteor.startup(async () => {
|
||||
await CustomFields._collection.createIndexAsync({ modifiedAt: -1 });
|
||||
await CustomFields._collection.createIndexAsync({ boardIds: 1 });
|
||||
});
|
||||
|
||||
CustomFields.after.insert((userId, doc) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue