This is an automated email from the ASF dual-hosted git repository.

kumfo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/main by this push:
     new fca80abb fix: correct variable name in JSON unmarshal for site general 
information
fca80abb is described below

commit fca80abbaf3807cf50c2927982033f282dc7effa
Author: kumfo <[email protected]>
AuthorDate: Tue Feb 3 11:07:48 2026 +0800

    fix: correct variable name in JSON unmarshal for site general information
---
 internal/migrations/v30.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
        }
 

Reply via email to