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); } }); }