Skip to content

Commit

Permalink
[#9000] Use updateRuleExceptWebhookSend when webhook.enable=false
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-ram committed Jul 4, 2022
1 parent a8c8e20 commit e4404f2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,14 @@ public List<Rule> selectRuleByApplicationId(String applicationId) {

@Override
public void updateRule(Rule rule) {
alarmDao.updateRule(rule);
alarmDao.updateRuleExceptWebhookSend(rule);
alarmDao.deleteCheckerResult(rule.getRuleId());
}

@Override
public void updateRuleWithWebhooks(Rule rule, List<String> webhookIds) {
updateRule(rule);
alarmDao.updateRule(rule);
alarmDao.deleteCheckerResult(rule.getRuleId());

List<WebhookSendInfo> oldListofWebhookInfos = webhookSendInfoDao.selectWebhookSendInfoByRuleId(rule.getRuleId());

Expand Down

0 comments on commit e4404f2

Please sign in to comment.