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 f956bd8 commit 406040aCopy full SHA for 406040a
src/app.js
@@ -52,7 +52,7 @@ function startKafkaConsumer(handlers) {
52
// save notifications
53
.then((notifications) => Promise.all(_.map(notifications, (notification) => models.Notification.create({
54
userId: notification.userId,
55
- type: notification.newType | topicName,
+ type: notification.newType || topicName,
56
version: notification.version || null,
57
contents: _.extend({}, messageJSON, notification.contents),
58
read: false,
0 commit comments