Skip to content

Commit e36a53e

Browse files
Update helper.js
1 parent a1cf99f commit e36a53e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/common/helper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,9 @@ async function postEvent (topic, payload, options = {}) {
952952
'mime-type': 'application/json',
953953
payload
954954
}
955-
_.merge(message,options)
955+
if (options.key) {
956+
message.key = options.key
957+
}
956958
await client.postEvent(message)
957959
await eventDispatcher.handleEvent(topic, { value: payload, options })
958960
}

0 commit comments

Comments
 (0)