Skip to content

Commit

Permalink
Fix for 1515
Browse files Browse the repository at this point in the history
  • Loading branch information
KeshavSoni2511 committed Feb 16, 2024
1 parent 301280a commit a2ac2b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Fix: store device subscriptions updates (#1086)
- Fix: typeInformation contain global config values (#1515)
- Fix: store device subscriptions updates (#1086)
4 changes: 2 additions & 2 deletions lib/services/ngsi/ngsiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ function executeWithDeviceInformation(operationFunction) {
// For preregistered devices, augment the existing deviceInformation with selected attributes.
if (!callback) {
callback = deviceInformation;
typeInformation = deviceGroup || configDeviceInfo;
typeInformation = deviceGroup || { ...config.getConfig(), ...configDeviceInfo };
} else {
typeInformation = deviceInformation;
typeInformation = { ...config.getConfig(), ...deviceInformation };
attributeList.forEach((key) => {
typeInformation[key] =
typeInformation[key] || (deviceGroup || {})[key] || (configDeviceInfo || {})[key];
Expand Down

0 comments on commit a2ac2b0

Please sign in to comment.