Fix cache not updating

revert-70ac1926
inoshperera 4 years ago
parent 8effa09a8f
commit 4f88c2354c

@ -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