mirror of
https://github.com/wekan/wekan.git
synced 2026-01-24 18:26: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
|
|
@ -122,9 +122,9 @@ Integrations.allow({
|
|||
|
||||
//INTEGRATIONS REST API
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
Integrations._collection.createIndex({ modifiedAt: -1 });
|
||||
Integrations._collection.createIndex({ boardId: 1 });
|
||||
Meteor.startup(async () => {
|
||||
await Integrations._collection.createIndexAsync({ modifiedAt: -1 });
|
||||
await Integrations._collection.createIndexAsync({ boardId: 1 });
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue