fix: Update option key from SelfUseModeEnabled to DemoSiteEnabled in PostSetup function
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user