From 0cb2abe8a4af1907e30f035e8ca200564178a9f3 Mon Sep 17 00:00:00 2001 From: Rain Date: Thu, 2 Jan 2020 18:13:29 +0800 Subject: [PATCH] fix(notify): Always update websocket config --- pkg/notify/models/mod_config.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/notify/models/mod_config.go b/pkg/notify/models/mod_config.go index be3d00c96e..e904df8ced 100644 --- a/pkg/notify/models/mod_config.go +++ b/pkg/notify/models/mod_config.go @@ -105,14 +105,6 @@ func (self *SConfigManager) InitializeData() error { } // init webconsole's config - q = self.Query().Equals("type", "webconsole") - n, err = q.CountWithError() - if err != nil { - return err - } - if n >= 4 { - return nil - } sql := fmt.Sprintf("update %s set deleted='1' where type='webconsole'", self.TableSpec().Name()) q = sqlchemy.NewRawQuery(sql) q.Row()