From 18550762e6be7907bf9490fbd6415b3f4451ebe5 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Wed, 10 Apr 2024 00:34:23 +0200 Subject: [PATCH] Fix import for standard byoyomi --- .../src/main/kotlin/org/jeudego/pairgoth/model/TimeSystem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")