Skip to content

Commit

Permalink
Response key change integrated (#69)
Browse files Browse the repository at this point in the history
* Response key change integrated

* version changed

* Update CHANGELOG.md

---------

Co-authored-by: vivek-gofynd <[email protected]>
  • Loading branch information
divyanshusinghh and vivek-gofynd authored Oct 24, 2024
1 parent 841dcf2 commit e0ad2eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.7.11] - 2024-09-23
### Changed
- Kafka config response key change in api.

## [v0.7.10] - 2024-09-23
### Changed
- Bugfix in process webhook
Expand Down
6 changes: 3 additions & 3 deletions express/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class WebhookRegistry {
existingEvents = event_configs.map(event => {
return {
'slug': `${event.event_category}/${event.event_name}/${event.event_type}/v${event.version}`,
'topic': event.subscriber_event_mapping.topic
'topic': event?.subscriber_event_mapping?.broadcaster_config?.topic
}
});
// Checking Configuration Updates
Expand Down Expand Up @@ -299,7 +299,7 @@ class WebhookRegistry {
slug: `${event.event_category}/${event.event_name}/${event.event_type}/v${event.version}`
}
if(subscriberConfig.provider === 'kafka'){
eventObj['topic'] = event.subscriber_event_mapping.topic
eventObj['topic'] = event?.subscriber_event_mapping?.broadcaster_config?.topic
}
return eventObj;
});
Expand Down Expand Up @@ -340,7 +340,7 @@ class WebhookRegistry {
slug: `${event.event_category}/${event.event_name}/${event.event_type}/v${event.version}`
}
if(subscriberConfig.provider === 'kafka'){
eventObj['topic'] = event.subscriber_event_mapping.topic
eventObj['topic'] = event?.subscriber_event_mapping?.broadcaster_config?.topic
}
return eventObj;
});
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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
Expand Up @@ -56,7 +56,7 @@
},
"name": "@gofynd/fdk-extension-javascript",
"description": "FDK Extension Helper Library",
"version": "0.7.10",
"version": "0.7.11",
"main": "index.js",
"directories": {
"example": "examples"
Expand Down

0 comments on commit e0ad2eb

Please sign in to comment.