fix: correct variable name in JSON unmarshal for site general information

This commit is contained in:
kumfo
2026-02-03 11:07:48 +08:00
parent a6bfd402b6
commit fca80abbaf
+1 -1
View File
@@ -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
}