fix #175: playgroundEnabled config option was not effective

This commit is contained in:
hrj 2022-10-11 07:30:46 +05:30
parent 7beecd7b80
commit 58c6e96dc9
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ case class ConfigField(
lazy val captchaExpiryTimeLimitInt: Option[Int] = mapInt(captchaExpiryTimeLimit)
lazy val threadDelayInt: Option[Int] = mapInt(threadDelay)
lazy val maxAttemptsRatioFloat: Option[Float] = mapFloat(maxAttemptsRatio)
lazy val playgroundEnabledBool: Option[Boolean] = playgroundEnabled.map(_ || true)
lazy val playgroundEnabledBool: Option[Boolean] = playgroundEnabled.map(_ || false)
private def mapInt(x: Option[Integer]): Option[Int] = {
x.map(_ + 0)