fix: Update option key from SelfUseModeEnabled to DemoSiteEnabled in PostSetup function

This commit is contained in:
CaIon 2025-04-03 19:21:53 +08:00
parent 88f7c0670f
commit a1f6781c0e

View File

@ -134,7 +134,7 @@ func PostSetup(c *gin.Context) {
return
}
err = model.UpdateOption("SelfUseModeEnabled", boolToString(req.DemoSiteEnabled))
err = model.UpdateOption("DemoSiteEnabled", boolToString(req.DemoSiteEnabled))
if err != nil {
c.JSON(500, gin.H{
"success": false,