fix(notify): enable websocket notifications defaultly for event notify

This commit is contained in:
rainzm
2022-04-02 18:50:21 +08:00
parent 7154da3225
commit 75aeacef8e
+1 -1
View File
@@ -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
}
}