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(theme): Set a default theme config

LinkinStardabfab6b9475
diff --git a/internal/migrations/v5.go b/internal/migrations/v5.go
index d9cb2c83..58dd61c9 100644
--- a/internal/migrations/v5.go
+++ b/internal/migrations/v5.go
@@ -38,7 +38,7 @@ func addThemeAndPrivateMode(x *xorm.Engine) error {
return fmt.Errorf("get config failed: %w", err)
}
if !exist {
- _, err = x.InsertOne(siteInfo)
+ _, err = x.InsertOne(themeSiteInfo)
}
return err
}