mirror of
https://github.com/wekan/wekan.git
synced 2026-02-13 19:54: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
|
|
@ -229,9 +229,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