mirror of
https://github.com/wekan/wekan.git
synced 2026-03-01 19:30:15 +01:00
Attachments, ensure index of cardId exists
This commit is contained in:
parent
ada7b3dd2d
commit
6d5651e53f
2 changed files with 5 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ if (Meteor.isServer) {
|
|||
});
|
||||
|
||||
Meteor.startup(() => {
|
||||
Attachments.collection._ensureIndex({ cardId: 1 });
|
||||
Attachments.collection._ensureIndex({ 'meta.cardId': 1 });
|
||||
const storagePath = Attachments.storagePath();
|
||||
console.log("Meteor.startup check storagePath: ", storagePath);
|
||||
if (!fs.existsSync(storagePath)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue