mirror of
https://github.com/wekan/wekan.git
synced 2026-02-09 01:34:21 +01:00
Migrate createIndex to createIndexAsync
This commit is contained in:
parent
60ecddfce4
commit
ca2083c858
32 changed files with 112 additions and 110 deletions
|
|
@ -64,7 +64,7 @@ CardCommentReactions.allow({
|
|||
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
CardCommentReactions._collection.createIndex({ cardCommentId: 1 }, { unique: true });
|
||||
Meteor.startup(async () => {
|
||||
await CardCommentReactions._collection.createIndexAsync({ cardCommentId: 1 }, { unique: true });
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue