dynamic and multiple outputs

master
km0 3 years ago
parent 2d55f7ce34
commit 1e677ac2ce

@ -32,8 +32,14 @@ module.exports = {
); );
}); });
}; };
let output = await script();
return output; let result = await script();
let message = {};
entity.output.forEach((out, index) => {
message[out.name] = result[index];
});
return message;
} }
return entity; return entity;

Loading…
Cancel
Save