We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4301b commit ea2972eCopy full SHA for ea2972e
src/app.js
@@ -46,7 +46,8 @@ function startKafkaConsumer(handlers, notificationServiceHandlers) {
46
// return null to ignore this message
47
return null;
48
}
49
- const messageJSON = JSON.parse(message);
+ const busPayload = JSON.parse(message);
50
+ const messageJSON = busPayload.payload;
51
const handlerAsync = Promise.promisify(handler);
52
// use handler to create notification instances for each recipient
53
return handlerAsync(topicName, messageJSON)
0 commit comments