Skip to content

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: correct variable name in JSON unmarshal for site general information

kumfofca80abbaf38
diff --git a/internal/migrations/v30.go b/internal/migrations/v30.go
index a2dca77e..72765e37 100644
--- a/internal/migrations/v30.go
+++ b/internal/migrations/v30.go
@@ -291,7 +291,7 @@ func splitLegalMenu(ctx context.Context, x *xorm.Engine) error {
return err
}
oldSiteGeneral := &SiteGeneral{}
- if err := json.Unmarshal([]byte(siteInfoLogin.Content), oldSiteGeneral); err != nil {
+ if err := json.Unmarshal([]byte(siteInfoGeneral.Content), oldSiteGeneral); err != nil {
return err
}