Skip to content

Commit

Permalink
Merge pull request #1475 from telefonicaid/fix/update_subscriptions_d…
Browse files Browse the repository at this point in the history
…evice

fix: update subscriptions in device
  • Loading branch information
fgalan committed Feb 5, 2024
2 parents d1586fb + db8a364 commit 301280a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix: store device subscriptions updates (#1086)
2 changes: 2 additions & 0 deletions lib/services/devices/deviceRegistryMongoDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const attributeList = [
'timestamp',
'explicitAttrs',
'ngsiVersion',
'subscriptions',
'payloadType'
];

Expand Down Expand Up @@ -318,6 +319,7 @@ function update(device, callback) {
data.explicitAttrs = device.explicitAttrs;
data.ngsiVersion = device.ngsiVersion;
data.timestamp = device.timestamp;
data.subscriptions = device.subscriptions;
data.payloadType = device.payloadType;

/* eslint-disable-next-line new-cap */
Expand Down

0 comments on commit 301280a

Please sign in to comment.