Skip to content

Commit 7f6a639

Browse files
committed
added the ability to turn paging on and off
1 parent a8e78ec commit 7f6a639

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

simple-aws.html

+17-5
Large diffs are not rendered by default.

simple-aws.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ module.exports = function(RED) {
116116
while (!done) {
117117
var response = await client[config.operation](operationParamCopy).promise()
118118
msgCopy.payload = response
119-
if ( paginatorDef && response[paginatorDef.output_token]) {
120-
console.log(`paginating ${config.service}:${config.operation} on ${paginatorDef.output_token}`)
119+
if ( config.paging !== 'disabled' && paginatorDef && response[paginatorDef.output_token]) {
120+
//console.log(`paginating ${config.service}:${config.operation} on ${paginatorDef.output_token}`)
121121
operationParamCopy[paginatorDef.input_token] = response[paginatorDef.output_token]
122122
delete msgCopy.complete
123123
node.send([msgCopy, null])

0 commit comments

Comments
 (0)