A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(plugin): fix rank config about question show/hide
LinkinStars0f8c4c79b411
diff --git a/internal/migrations/v8.go b/internal/migrations/v8.goindex ab6aa3ea..ce8f2c71 100644--- a/internal/migrations/v8.go+++ b/internal/migrations/v8.go@@ -74,7 +74,7 @@ func addRolePinAndHideFeatures(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}); 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)}