Merge pull request #48 from Telecominfraproject/hotfix/netexp-2342

fix bug for cannot find alarm to be deleted exception
This commit is contained in:
norm-traxler
2021-06-28 19:43:34 -04:00
committed by GitHub

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);
});
}