update upgrade pin list

This commit is contained in:
aichy126 2023-04-25 14:31:46 +08:00
parent 201a776cd6
commit 6b53609caf
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func updateRolePinAndHideFeatures(x *xorm.Engine) error {
return fmt.Errorf("get config failed: %w", err)
}
if exist {
if _, err = x.Update(c, &entity.Config{ID: c.ID, Key: c.Key, Value: c.Value}); err != nil {
if _, err = x.Update(c, &entity.Config{ID: c.ID}); err != nil {
log.Errorf("update %+v config failed: %s", c, err)
return fmt.Errorf("update config failed: %w", err)
}