From de3bc9cb4d20590c45ff72ef7749d830ea3fc16c Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sat, 3 Aug 2024 00:52:51 +0300 Subject: [PATCH] Fix typos at attachments code. --- models/trelloCreator.js | 4 ++-- models/wekanCreator.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/models/trelloCreator.js b/models/trelloCreator.js index e0efa3aac..2d445bc46 100644 --- a/models/trelloCreator.js +++ b/models/trelloCreator.js @@ -450,9 +450,9 @@ export class TrelloCreator { } }; if (att.url) { - Attachment.load(att.url, opts, cb, true); + Attachments.load(att.url, opts, cb, true); } else if (att.file) { - Attachment.write(att.file, opts, cb, true); + Attachments.insert(att.file, opts, cb, true); } }); diff --git a/models/wekanCreator.js b/models/wekanCreator.js index a2fc789bd..b429a9427 100644 --- a/models/wekanCreator.js +++ b/models/wekanCreator.js @@ -471,9 +471,9 @@ export class WekanCreator { } }; if (att.url) { - Attachment.load(att.url, opts, cb, true); + Attachments.load(att.url, opts, cb, true); } else if (att.file) { - Attachment.write(att.file, opts, cb, true); + Attachments.insert(att.file, opts, cb, true); } }); }