Skip to content

Commit

Permalink
fix: metric delete table status change (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooneylert authored Aug 14, 2024
1 parent 9778d66 commit 3ddb8d6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ public void onEvent(AlarmRuleDTO alarmRuleDTO) {
alarmMetricService.save(alarmMetric);
} else {
alarmMetric.setId(db.getId());
alarmMetricService.updateById(alarmMetric);
if (alarmMetric.deleted) {
alarmMetricService.removeById(alarmMetric);
} else {
alarmMetricService.updateById(alarmMetric);
}
}
}
}
Expand Down

0 comments on commit 3ddb8d6

Please sign in to comment.