Skip to content

Commit ea2972e

Browse files
committed
upgrade bus api format
1 parent 9a4301b commit ea2972e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ function startKafkaConsumer(handlers, notificationServiceHandlers) {
4646
// return null to ignore this message
4747
return null;
4848
}
49-
const messageJSON = JSON.parse(message);
49+
const busPayload = JSON.parse(message);
50+
const messageJSON = busPayload.payload;
5051
const handlerAsync = Promise.promisify(handler);
5152
// use handler to create notification instances for each recipient
5253
return handlerAsync(topicName, messageJSON)

0 commit comments

Comments
 (0)