Fix issue in enrollment object modification

revert-70ac1926
inoshperera 4 years ago
parent f07df95f52
commit bfd1f794de

@ -99,8 +99,7 @@ public class DeviceStatusMonitoringTask extends DynamicPartitionedScheduleTask {
long lastUpdatedTime = (timeMillis - monitoringData long lastUpdatedTime = (timeMillis - monitoringData
.getLastUpdatedTime()) / 1000; .getLastUpdatedTime()) / 1000;
EnrolmentInfo enrolmentInfo = new EnrolmentInfo(); EnrolmentInfo enrolmentInfo = monitoringData.getDevice().getEnrolmentInfo();
enrolmentInfo.setId(monitoringData.getDevice().getEnrolmentInfo().getId());
EnrolmentInfo.Status status = null; EnrolmentInfo.Status status = null;
if (lastUpdatedTime >= this.deviceStatusTaskPluginConfig if (lastUpdatedTime >= this.deviceStatusTaskPluginConfig
.getIdleTimeToMarkInactive()) { .getIdleTimeToMarkInactive()) {

Loading…
Cancel
Save