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 update plugin status to default
LinkinStarsdf9b08abcf98
diff --git a/internal/migrations/v7.go b/internal/migrations/v7.goindex 6a2d9b58..1770a80d 100644--- a/internal/migrations/v7.go+++ b/internal/migrations/v7.go@@ -18,10 +18,6 @@ func addPlugin(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 {- log.Errorf("update %+v config failed: %s", c, err)- return fmt.Errorf("update config failed: %w", err)- }continue}if _, err = x.Insert(&entity.Config{ID: c.ID, Key: c.Key, Value: c.Value}); err != nil {