fix: Update option key from SelfUseModeEnabled to DemoSiteEnabled in PostSetup function
This commit is contained in:
1 parent
88f7c0670f
commit
a1f6781c0e
1 file changed
+1
-1
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user