Skip to content

Commit 8bcedaa

Browse files
Update lib/actions/read.js
Co-authored-by: Jacob Horbulyk <[email protected]>
1 parent bb5482f commit 8bcedaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/actions/read.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async function readCSV(msg, cfg) {
118118
return
119119
}
120120

121-
if (emitBehavior === 'fetchAll') {
121+
if (emitBehavior === 'fetchAll' || cfg.emitAll === true || cfg.emitAll === 'true') {
122122
await this.emit('data', messages.newMessageWithBody({ result }))
123123
} else if (emitBehavior === 'emitBatch') {
124124
const chunks = sliceIntoChunks(result, body.batchSize);

0 commit comments

Comments
 (0)