Fix Event

This commit is contained in:
2024-12-21 16:16:54 +01:00
parent 06b0af5a16
commit 1b47700c19
@@ -234,7 +234,7 @@ fun Route.configureEventsRoute() {
}
}
suspend fun ApplicationCall.receiveEvent(fieldName: String = "event"): Event? {
suspend fun ApplicationCall.receiveEvent(fieldName: String = "id"): Event? {
val eventId = parameters[fieldName]?.toIntOrNull()
if (eventId == null) {
respond(HttpStatusCode.BadRequest, ResponseError("Invalid event ID"))