mirror of
https://github.com/wekan/wekan.git
synced 2026-02-11 18:54:22 +01:00
Migrate createIndex to createIndexAsync
This commit is contained in:
parent
60ecddfce4
commit
ca2083c858
32 changed files with 112 additions and 110 deletions
|
|
@ -160,10 +160,10 @@ PositionHistory.helpers({
|
|||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
PositionHistory._collection.createIndex({ boardId: 1, entityType: 1, entityId: 1 });
|
||||
PositionHistory._collection.createIndex({ boardId: 1, entityType: 1 });
|
||||
PositionHistory._collection.createIndex({ createdAt: -1 });
|
||||
Meteor.startup(async () => {
|
||||
await PositionHistory._collection.createIndexAsync({ boardId: 1, entityType: 1, entityId: 1 });
|
||||
await PositionHistory._collection.createIndexAsync({ boardId: 1, entityType: 1 });
|
||||
await PositionHistory._collection.createIndexAsync({ createdAt: -1 });
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue