From fe018225b41b6983d5bc7101d3efb37f3cd281bb Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Sun, 3 Apr 2022 23:53:18 +0200 Subject: [PATCH] Attachment property "meta.source" had wrong value --- server/migrations.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/migrations.js b/server/migrations.js index a5f348239..55f3eecb3 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -1332,3 +1332,12 @@ Migrations.add('migrate-attachment-drop-index-cardId', () => { } catch (error) { } }); + +Migrations.add('migrate-attachment-migration-fix-source-import', () => { + // there was an error at first versions, so source was import, instead of import + Attachments.update( + {"meta.source":"import,"}, + {$set:{"meta.source":"import"}}, + noValidateMulti + ); +});