Skip to content

Commit 99f24dd

Browse files
author
Hanna
committed
sailor 2.5.1 build type docker
1 parent 6c778f4 commit 99f24dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/actions/splitOnJsonata.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const { messages } = require('elasticio-node');
66
* @this processAction
77
*/
88
async function processAction(msg, cfg) {
9-
const self = this;
109
const split = JsonataTransform.jsonataTransform(msg, cfg);
1110

1211
if (!Array.isArray(split)) {
@@ -21,7 +20,7 @@ async function processAction(msg, cfg) {
2120

2221
const results = [];
2322
split.forEach((elem) => results.push(elem));
24-
self.logger.debug('%s parts to emit found', results.length);
23+
this.logger.debug('%s parts to emit found', results.length);
2524
results.forEach(async (result) => {
2625
if (result) {
2726
await this.emit('data', messages.newMessageWithBody(result));

0 commit comments

Comments
 (0)