mirror of
https://github.com/wekan/wekan.git
synced 2026-01-25 10:46: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
|
|
@ -367,8 +367,8 @@ if (Meteor.isServer) {
|
|||
},
|
||||
});
|
||||
|
||||
Meteor.startup(() => {
|
||||
Attachments.collection.createIndex({ 'meta.cardId': 1 });
|
||||
Meteor.startup(async () => {
|
||||
await Attachments.collection.createIndexAsync({ 'meta.cardId': 1 });
|
||||
const storagePath = fileStoreStrategyFactory.storagePath;
|
||||
if (!fs.existsSync(storagePath)) {
|
||||
console.log("create storagePath because it doesn't exist: " + storagePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue