Skip to content

Commit fca80ab

Browse files
committed
fix: correct variable name in JSON unmarshal for site general information
1 parent a6bfd40 commit fca80ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/migrations/v30.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func splitLegalMenu(ctx context.Context, x *xorm.Engine) error {
291291
return err
292292
}
293293
oldSiteGeneral := &SiteGeneral{}
294-
if err := json.Unmarshal([]byte(siteInfoLogin.Content), oldSiteGeneral); err != nil {
294+
if err := json.Unmarshal([]byte(siteInfoGeneral.Content), oldSiteGeneral); err != nil {
295295
return err
296296
}
297297

0 commit comments

Comments
 (0)