Skip to content

Commit

Permalink
fix: passing event without value to listener
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasAlabes committed Dec 31, 2019
1 parent b9b0bff commit dba2dfa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/kafka-pubsub.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/kafka-pubsub.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphql-kafkajs-subscriptions",
"version": "0.1.0",
"version": "0.1.1",
"description": "Apollo graphql subscription over Kafka protocol",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/kafka-pubsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class KafkaPubSub implements PubSubEngine {
} // no subscribers, don't publish msg
for (const subId of subscriptions) {
const [cnl, listener] = this.subscriptionMap[subId];
listener(message.value);
listener(message);
}
}

Expand Down

0 comments on commit dba2dfa

Please sign in to comment.