From 49a996624f3842c243bb72120b95c27d914e02a9 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 6 Apr 2022 18:47:27 +0300 Subject: [PATCH] Comment out Trello attachment import until it's implemented with API key. Thanks to xet7 ! Related #4418 --- models/trelloCreator.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/models/trelloCreator.js b/models/trelloCreator.js index 3db83ef55..3a087565e 100644 --- a/models/trelloCreator.js +++ b/models/trelloCreator.js @@ -447,15 +447,17 @@ export class TrelloCreator { }); } }; - if (att.url) { - Attachment.load(att.url, opts, cb, true); - } else if (att.file) { - Attachment.write(att.file, opts, cb, true); - } + // TODO: Add import attachment with Trello API key + // like Python code at wekan/trello/ of https://github.com/wekan/wekan + //if (att.url) { + // Attachment.load(att.url, opts, cb, true); + //} else if (att.file) { + // Attachment.write(att.file, opts, cb, true); + //} }); - if (links !== undefined) { - if (links.length !== undefined) { + if (links) { + if (links.length) { let desc = cardToCreate.description.trim(); if (desc) { desc += '\n\n';