mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #4483 from rainzm/bugfix/notify_websocket_config_init
fix(notify): Always update websocket config
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user