From 0389b72a4889d432c3aa0cf21b0f29d3ae7e7dd6 Mon Sep 17 00:00:00 2001 From: if0s Date: Mon, 14 Mar 2022 11:22:09 +0200 Subject: [PATCH] init --- CHANGELOG.md | 3 +++ component.json | 2 +- lib/actions/read.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f02c35e..a562f57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.1.1 (March 25, 2022) +* Fixed input metadata for behavior `Emit Batch` + ## 3.1.0 (March 3, 2022) * Added `Emit Batch` behavior for `Read CSV attachment` action diff --git a/component.json b/component.json index 24837b9..eee48d0 100644 --- a/component.json +++ b/component.json @@ -3,7 +3,7 @@ "description": "A comma-separated values (CSV) file stores tabular data (numbers and text) in plain-text form", "docsUrl": "https://github.com/elasticio/csv-component", "buildType": "docker", - "version": "3.1.0", + "version": "3.1.1", "actions": { "read_action": { "main": "./lib/actions/read.js", diff --git a/lib/actions/read.js b/lib/actions/read.js index 851c15a..5de1f1f 100644 --- a/lib/actions/read.js +++ b/lib/actions/read.js @@ -162,7 +162,7 @@ module.exports.getMetaModel = async function getMetaModel(cfg) { out: {} }; - if (cfg.emitBehavior === 'emitBatch') { + if (cfg.emitAll === 'emitBatch') { meta.in.properties.batchSize = { title: 'Batch Size', type: 'number',