fixed plugin storage update during enable|disable (#188)

This commit is contained in:
饺子w 2019-05-05 19:33:56 +08:00 committed by GitHub
parent 909fb80d48
commit 11165faa06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,8 @@ func (m *Manager) SetPluginEnabled(pluginID uint, enabled bool) error {
if err != nil {
return err
}
conf = m.db.GetPluginConfByID(pluginID) // conf might be updated by instance
conf.Enabled = enabled
return m.db.UpdatePluginConf(conf)
}