From a3e7fa62b2a7f2bfd5c6caa333472e2177fc1ea3 Mon Sep 17 00:00:00 2001 From: "taekyu.kang" Date: Wed, 24 Apr 2024 16:26:14 +0900 Subject: [PATCH] trivial. update status when snr deleting --- internal/usecase/system-notification-rule.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/usecase/system-notification-rule.go b/internal/usecase/system-notification-rule.go index 59073c78..841e4446 100644 --- a/internal/usecase/system-notification-rule.go +++ b/internal/usecase/system-notification-rule.go @@ -158,6 +158,12 @@ func (u *SystemNotificationRuleUsecase) Delete(ctx context.Context, systemNotifi if err != nil { return err } + + // update status for appling kubernetes + if err = u.repo.UpdateStatus(ctx, systemNotificationRuleId, domain.SystemNotificationRuleStatus_PENDING); err != nil { + return err + } + return }