From 0060697f4d762759997f4345d330d5eb68da323d Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Wed, 5 May 2021 15:17:07 +0200 Subject: [PATCH] Update deviceRegistryMongoDB.js --- lib/services/devices/deviceRegistryMongoDB.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/services/devices/deviceRegistryMongoDB.js b/lib/services/devices/deviceRegistryMongoDB.js index 1090eb615..ab189c4e5 100644 --- a/lib/services/devices/deviceRegistryMongoDB.js +++ b/lib/services/devices/deviceRegistryMongoDB.js @@ -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)); } });