From 6a1e617054137029b757354a6ccba1f5956bd6dc Mon Sep 17 00:00:00 2001 From: "shyyko.serhiy" Date: Wed, 29 Jul 2020 18:08:44 -0400 Subject: [PATCH] fix: invalid property in handleNoProcess --- node/example/sample-deaggregation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/example/sample-deaggregation.js b/node/example/sample-deaggregation.js index 085dc6f..6f6ac9c 100644 --- a/node/example/sample-deaggregation.js +++ b/node/example/sample-deaggregation.js @@ -39,7 +39,7 @@ var handleNoProcess = function(event, callback) { noProcessReason = "Event contains no Data"; } if (event.Records[0].eventSource !== "aws:kinesis") { - noProcessReason = "Invalid Event Source " + event.eventSource; + noProcessReason = "Invalid Event Source " + event.Records[0].eventSource; } if (event.Records[0].kinesis.kinesisSchemaVersion !== "1.0") { noProcessReason = "Unsupported Event Schema Version " + event.Records[0].kinesis.kinesisSchemaVersion;