Skip to content

Commit

Permalink
[pinpoint-apm#9000] Use updateRuleExceptWebhookSend when webhook.enab…
Browse files Browse the repository at this point in the history
…le=false
  • Loading branch information
ga-ram committed Jul 4, 2022
1 parent b396414 commit 6f5b263
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 6f5b263

Please sign in to comment.