diff --git a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/model/TimeSystem.kt b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/model/TimeSystem.kt index 3819014..e368e21 100644 --- a/api-webapp/src/main/kotlin/org/jeudego/pairgoth/model/TimeSystem.kt +++ b/api-webapp/src/main/kotlin/org/jeudego/pairgoth/model/TimeSystem.kt @@ -67,7 +67,7 @@ fun TimeSystem.Companion.fromJson(json: Json.Object) = byoyomi = json.getInt("byoyomi") ?: badRequest("missing timeSystem byoyomi"), stones = json.getInt("stones") ?: badRequest("missing timeSystem stones") ) - "STANDARD" -> StandardByoyomi( + "STANDARD", "JAPANESE" -> StandardByoyomi( mainTime = json.getInt("mainTime") ?: badRequest("missing timeSystem mainTime"), byoyomi = json.getInt("byoyomi") ?: badRequest("missing timeSystem byoyomi"), periods = json.getInt("periods") ?: badRequest("missing timeSystem periods")