Remove leftover unused arguments parsing for external execution

This commit is contained in:
Tobias Wolf 2022-08-16 12:01:25 +02:00
parent b5d311c00c
commit e6b705be26

View file

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