Skip to content

Commit

Permalink
update CNR
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Sep 5, 2023
1 parent b0056b9 commit 9ba1606
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@

- Ensure device apikey in already provisioned device (iota-node-lib#1430)
4 changes: 3 additions & 1 deletion lib/iotaUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ function findOrCreate(deviceId, transport, group, callback) {
'apikey' in group &&
group.apikey !== undefined
) {
logger.info(context, 'Update provisioned device %j with measure/group apikey %j', device, group.apikey);
config
.getLogger()
.info(context, 'Update provisioned device %j with measure/group apikey %j', device, group.apikey);
device.apikey = group.apikey; // group apikey is the same of current measure apikey
iotAgentLib.updateRegister(device, function (error, device) {
callback(error, device, group);
Expand Down

0 comments on commit 9ba1606

Please sign in to comment.