Closed jhorbulyk closed 4 years ago
from: splitter-component/lib/actions/splitOnJsonata.js
results.forEach(async (result) => { if (result) { await this.emit('data', messages.newMessageWithBody(result)); } });
This code does not handle asynchronous call emit correctly. see e.g. here: https://stackoverflow.com/questions/37576685/are-there-any-issues-with-using-async-await-in-a-foreach-loop It should be replaced with either for (... of ...) {await ...} so that:
for (... of ...) {await ...}
Bug affects splitter component not transform component.
from: splitter-component/lib/actions/splitOnJsonata.js
This code does not handle asynchronous call emit correctly. see e.g. here: https://stackoverflow.com/questions/37576685/are-there-any-issues-with-using-async-await-in-a-foreach-loop It should be replaced with either
for (... of ...) {await ...}
so that: