diff --git a/WebsiteBackend/src/de/steamwar/routes/EventFights.kt b/WebsiteBackend/src/de/steamwar/routes/EventFights.kt index 1f0e63c5..bcdb1b6e 100644 --- a/WebsiteBackend/src/de/steamwar/routes/EventFights.kt +++ b/WebsiteBackend/src/de/steamwar/routes/EventFights.kt @@ -68,7 +68,8 @@ data class UpdateEventFight( val spielmodus: String? = null, val map: String? = null, val group: Int? = null, - val spectatePort: Int? = null + val spectatePort: Int? = null, + val ergebnis: Int? = null, ) @Serializable @@ -133,6 +134,11 @@ fun Route.configureEventFightRoutes() { fight.groupId = updateFight.group } } + + if (updateFight.ergebnis != null) { + fight.ergebnis = updateFight.ergebnis + } + fight.update(start, spielmodus, map, teamBlue, teamRed, spectatePort) call.respond(HttpStatusCode.OK, ResponseEventFight(fight)) }