Browse Source

Merge branch 'master' of github.com:wekan/wekan

Lauri Ojansivu 3 years ago
parent
commit
90be8ff936
1 changed files with 4 additions and 1 deletions
  1. 4 1
      server/migrations.js

+ 4 - 1
server/migrations.js

@@ -1278,5 +1278,8 @@ Migrations.add('migrate-avatars-collectionFS-to-ostrioFiles', () => {
 });
 
 Migrations.add('migrate-attachment-drop-index-cardId', () => {
-  Attachments.collection._dropIndex({'cardId': 1});
+  try {
+    Attachments.collection._dropIndex({'cardId': 1});
+  } catch (error) {
+  }
 });