Commit 601efbc9317a0f65df0413bc800ad25870e3ebc3
1 parent
6c618a7d
Fixed action type for alarm audit log
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -83,7 +83,7 @@ public class AlarmController extends BaseController { | @@ -83,7 +83,7 @@ public class AlarmController extends BaseController { | ||
83 | Alarm savedAlarm = checkNotNull(alarmService.createOrUpdateAlarm(alarm)); | 83 | Alarm savedAlarm = checkNotNull(alarmService.createOrUpdateAlarm(alarm)); |
84 | logEntityAction(savedAlarm.getId(), savedAlarm, | 84 | logEntityAction(savedAlarm.getId(), savedAlarm, |
85 | getCurrentUser().getCustomerId(), | 85 | getCurrentUser().getCustomerId(), |
86 | - savedAlarm.getId() == null ? ActionType.ADDED : ActionType.UPDATED, null); | 86 | + alarm.getId() == null ? ActionType.ADDED : ActionType.UPDATED, null); |
87 | return savedAlarm; | 87 | return savedAlarm; |
88 | } catch (Exception e) { | 88 | } catch (Exception e) { |
89 | logEntityAction(emptyId(EntityType.ALARM), alarm, | 89 | logEntityAction(emptyId(EntityType.ALARM), alarm, |