Skip to content

Commit 94632a4

Browse files
committed
fix email notification Kafka message payload format
1 parent 91325c1 commit 94632a4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

local/kafka-client/topics.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ taas.interview.update
2121
taas.interview.bulkUpdate
2222
external.action.email
2323
taas.action.retry
24+
notifications.action.create

src/services/EmailNotificationService.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,9 @@ async function sendEmail (currentUser, data) {
499499
version: 'v3'
500500
}
501501
}
502-
await helper.postEvent(config.NOTIFICATIONS_CREATE_TOPIC, emailData)
502+
await helper.postEvent(config.NOTIFICATIONS_CREATE_TOPIC, {
503+
notifications: [emailData]
504+
})
503505
}
504506

505507
module.exports = {

0 commit comments

Comments
 (0)