Skip to content

Commit 76ad3d7

Browse files
author
sachin-maheshwari
authored
Merge pull request #54 from topcoder-platform/dev
changes to support new bus payload format.
2 parents b444c88 + 7ef824e commit 76ad3d7

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)