Skip to content

Commit 3475a34

Browse files
fix issue with: Challenge ID undefined is null, will not queue to retry
1 parent e6df7e6 commit 3475a34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const dataHandler = async (messageSet, topic, partition) => Promise.each(message
5454
throw new Error(`Invalid topic: ${topic}`)
5555
}
5656
} else {
57-
const challengeId = get(message, 'payload.challengeId')
57+
const challengeId = get(messageJSON, 'payload.challengeId')
5858
if (isNil(challengeId)) {
5959
throw new Error(`Challenge ID ${challengeId} is null, will not queue to retry`)
6060
} else {

0 commit comments

Comments
 (0)