chore: refacto
This commit is contained in:
@@ -962,7 +962,7 @@ func ResetClientPointAdmin(c *gin.Context) {
|
||||
database := c.MustGet("database").(*db.Database)
|
||||
|
||||
extraPoolKey := ""
|
||||
if req.Pool >= 2 {
|
||||
if req.Pool >= 0 {
|
||||
if settings, err := database.GetSettings(); err == nil && req.Pool < len(settings.PointsPools) {
|
||||
extraPoolKey = settings.PointsPools[req.Pool].Key
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user