Преглед изворни кода

Fix typos at attachments code.

Lauri Ojansivu пре 10 месеци
родитељ
комит
de3bc9cb4d
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 2 2
      models/trelloCreator.js
  2. 2 2
      models/wekanCreator.js

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

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