Browse Source

Remove leftover unused arguments parsing for external execution

Tobias Wolf 2 năm trước cách đây
mục cha
commit
e6b705be26
1 tập tin đã thay đổi với 0 bổ sung8 xóa
  1. 0 8
      models/attachments.js

+ 0 - 8
models/attachments.js

@@ -162,14 +162,6 @@ if (Meteor.isServer) {
       }
       }
 
 
       if (isValid && attachmentUploadExternalProgram) {
       if (isValid && attachmentUploadExternalProgram) {
-        let args = { ...attachmentUploadExternalProgram.args };
-
-        for (let key in args) {
-          if (args[key] == "%file") {
-            args[key] = fileObj.path;
-          }
-        }
-
         Promise.await(asyncExec(attachmentUploadExternalProgram.replace("{file}", '"' + fileObj.path + '"')));
         Promise.await(asyncExec(attachmentUploadExternalProgram.replace("{file}", '"' + fileObj.path + '"')));
         isValid = fs.existsSync(fileObj.path);
         isValid = fs.existsSync(fileObj.path);