Skip to content

Commit

Permalink
Update deviceRegistryMongoDB.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega authored May 5, 2021
1 parent 6b9cf44 commit 0060697
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 0060697

Please sign in to comment.