Merge branch 'sync_fix' into 'master'

Fix cache not updating

See merge request entgra/carbon-device-mgt!734
4.x.x
Dharmakeerthi Lasantha 4 years ago
commit 7e088ea747

@ -116,8 +116,7 @@ public class DeviceStatusMonitoringTask extends DynamicPartitionedScheduleTask {
DeviceIdentifier deviceIdentifier = DeviceIdentifier deviceIdentifier =
new DeviceIdentifier(monitoringData.getDevice() new DeviceIdentifier(monitoringData.getDevice()
.getDeviceIdentifier(), deviceType); .getDeviceIdentifier(), deviceType);
DeviceCacheManagerImpl.getInstance().removeDeviceFromCache(deviceIdentifier, monitoringData.getDevice().setEnrolmentInfo(enrolmentInfo);
monitoringData.getTenantId());
DeviceCacheManagerImpl.getInstance().addDeviceToCache(deviceIdentifier, DeviceCacheManagerImpl.getInstance().addDeviceToCache(deviceIdentifier,
monitoringData.getDevice(), monitoringData.getTenantId()); monitoringData.getDevice(), monitoringData.getTenantId());
} }

Loading…
Cancel
Save