fix bug for cannot find alarm to be deleted exception

This commit is contained in:
Thomas-Leung2021
2021-06-28 19:05:01 -04:00
parent 34a6baf956
commit 18698fc188

View File

@@ -1148,7 +1148,7 @@ public class MqttStatsPublisher {
void clearDeviceThresholdAlarm(int customerId, long equipmentId, AlarmCode alarmCode) {
alarmServiceInterface.get(customerId, Set.of(equipmentId), Set.of(alarmCode)).stream().forEach(a -> {
Alarm alarm = alarmServiceInterface.delete(customerId, equipmentId, a.getAlarmCode(), a.getLastModifiedTimestamp());
Alarm alarm = alarmServiceInterface.delete(customerId, equipmentId, a.getAlarmCode(), a.getCreatedTimestamp());
LOG.info("Cleared device threshold alarm {}", alarm);
});
}