Skip to content

Commit

Permalink
Merge pull request #1030 from telefonicaid/fix/allow_update_device
Browse files Browse the repository at this point in the history
allow update a device
  • Loading branch information
fgalan authored May 5, 2021
2 parents 6b9cf44 + 0060697 commit 0135399
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/services/devices/deviceRegistryMongoDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ function update(device, callback) {

/* eslint-disable-next-line new-cap */
const deviceObj = new Device.model(data);
deviceObj.isNew = false;
deviceObj.save(saveDeviceHandler(callback));
}
});
Expand Down

0 comments on commit 0135399

Please sign in to comment.