mirror of
https://github.com/wekan/wekan.git
synced 2026-01-26 19:26:09 +01:00
Migrate createIndex to createIndexAsync
This commit is contained in:
parent
60ecddfce4
commit
ca2083c858
32 changed files with 112 additions and 110 deletions
|
|
@ -53,8 +53,8 @@ AccessibilitySettings.allow({
|
|||
});
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.startup(() => {
|
||||
AccessibilitySettings._collection.createIndex({ modifiedAt: -1 });
|
||||
Meteor.startup(async () => {
|
||||
await AccessibilitySettings._collection.createIndexAsync({ modifiedAt: -1 });
|
||||
const accessibilitySetting = AccessibilitySettings.findOne({});
|
||||
if (!accessibilitySetting) {
|
||||
AccessibilitySettings.insert({ enabled: false, sort: 0 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue