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 454dac17ea
commit 27933da884

View File

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