From 75aeacef8e5a52559ace5d9c1b1db1e043fcad84 Mon Sep 17 00:00:00 2001 From: rainzm Date: Sat, 2 Apr 2022 18:50:21 +0800 Subject: [PATCH] fix(notify): enable websocket notifications defaultly for event notify --- pkg/notify/models/notification.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/notify/models/notification.go b/pkg/notify/models/notification.go index 5b296bfdf9..47471a474f 100644 --- a/pkg/notify/models/notification.go +++ b/pkg/notify/models/notification.go @@ -348,7 +348,7 @@ func (nm *SNotificationManager) PerformEventNotify(ctx context.Context, userCred func (nm *SNotificationManager) needWebconsole(topics []STopic) bool { for i := range topics { - if topics[i].WebconsoleDisable.IsFalse() { + if topics[i].WebconsoleDisable.IsFalse() || topics[i].WebconsoleDisable.IsNone() { return true } }