From a238b1585eddc5d577ff724c2fe656031cc23790 Mon Sep 17 00:00:00 2001 From: ga-ram Date: Mon, 4 Jul 2022 14:33:30 +0900 Subject: [PATCH] [#9000] Use updateRuleExceptWebhookSend when webhook.enable=false --- .../com/navercorp/pinpoint/web/service/AlarmServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/main/java/com/navercorp/pinpoint/web/service/AlarmServiceImpl.java b/web/src/main/java/com/navercorp/pinpoint/web/service/AlarmServiceImpl.java index d89e2e1e36fa..92ddbaf3d78d 100644 --- a/web/src/main/java/com/navercorp/pinpoint/web/service/AlarmServiceImpl.java +++ b/web/src/main/java/com/navercorp/pinpoint/web/service/AlarmServiceImpl.java @@ -81,13 +81,14 @@ public List 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 webhookIds) { - updateRule(rule); + alarmDao.updateRule(rule); + alarmDao.deleteCheckerResult(rule.getRuleId()); List oldListofWebhookInfos = webhookSendInfoDao.selectWebhookSendInfoByRuleId(rule.getRuleId());