From e6b705be26987eb700ec8cd07a822bbb5f014f89 Mon Sep 17 00:00:00 2001 From: Tobias Wolf Date: Tue, 16 Aug 2022 12:01:25 +0200 Subject: [PATCH] Remove leftover unused arguments parsing for external execution --- models/attachments.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/models/attachments.js b/models/attachments.js index 8cba250ab..fe89e83e1 100644 --- a/models/attachments.js +++ b/models/attachments.js @@ -162,14 +162,6 @@ if (Meteor.isServer) { } 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 + '"'))); isValid = fs.existsSync(fileObj.path);