Skip to content

Commit 0135399

Browse files
authored
Merge pull request #1030 from telefonicaid/fix/allow_update_device
allow update a device
2 parents 6b9cf44 + 0060697 commit 0135399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/services/devices/deviceRegistryMongoDB.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ function update(device, callback) {
298298

299299
/* eslint-disable-next-line new-cap */
300300
const deviceObj = new Device.model(data);
301+
deviceObj.isNew = false;
301302
deviceObj.save(saveDeviceHandler(callback));
302303
}
303304
});

0 commit comments

Comments
 (0)