Skip to content

Commit

Permalink
Bugfix: Assignment to constant variable (#55)
Browse files Browse the repository at this point in the history
* Bugfix: Assignment to constant variable

* 0.7.5

* Added Changelog
  • Loading branch information
bhargavprajapatiFynd authored Jun 19, 2024
1 parent f720680 commit 5e2e3f7
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.5] - 2024-06-19
### Changed
- Fixed a variable reassignment bug
---
## [v0.7.4] - 2024-06-19
### Added
Expand Down
4 changes: 2 additions & 2 deletions express/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class WebhookRegistry {
throw new FdkWebhookRegistrationError(`Subscriber config not found`);
}
for(const subscriberConfigType in subscriberConfigList) {
const subscriberConfig = subscriberConfigList[subscriberConfigType];
let subscriberConfig = subscriberConfigList[subscriberConfigType];
const { id, name, webhook_url, provider="rest", association, status, auth_meta, event_configs, email_id } = subscriberConfig;
subscriberConfig = { id, name, webhook_url, provider, association, status, auth_meta, email_id };
subscriberConfig.events = event_configs.map(event => {
Expand Down Expand Up @@ -327,7 +327,7 @@ class WebhookRegistry {
throw new FdkWebhookRegistrationError(`Subscriber config not found`);
}
for(const subscriberConfigType in subscriberConfigList) {
const subscriberConfig = subscriberConfigList[subscriberConfigType];
let subscriberConfig = subscriberConfigList[subscriberConfigType];
const { id, name, webhook_url, provider="rest", association, status, auth_meta, event_configs, email_id } = subscriberConfig;
subscriberConfig = { id, name, webhook_url, provider, association, status, auth_meta, email_id };
subscriberConfig.events = event_configs.map(event => {
Expand Down
4 changes: 2 additions & 2 deletions 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.4",
"version": "0.7.5",
"main": "index.js",
"directories": {
"example": "examples"
Expand Down

0 comments on commit 5e2e3f7

Please sign in to comment.