Merge pull request #4483 from rainzm/bugfix/notify_websocket_config_init

fix(notify): Always update websocket config
This commit is contained in:
Zexi Li
2020-01-03 11:22:15 +08:00
committed by GitHub
-8
View File
@@ -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()