WIP
This commit is contained in:
@@ -314,7 +314,7 @@ fun Pairing.toJson() = Json.Object(
|
||||
"type" to type.name,
|
||||
"base" to pairingParams.base.toJson(),
|
||||
"main" to pairingParams.main.toJson(),
|
||||
"secondary" to pairingParams.main.toJson(),
|
||||
"secondary" to pairingParams.secondary.toJson(),
|
||||
"geo" to pairingParams.geo.toJson(),
|
||||
"handicap" to pairingParams.handicap.toJson(),
|
||||
"placement" to placementParams.toJson()
|
||||
|
@@ -248,6 +248,7 @@ class ApiServlet : HttpServlet() {
|
||||
response.status = code
|
||||
if (response.isCommitted) return
|
||||
val errorPayload = Json.Object(
|
||||
"success" to false,
|
||||
"error" to (message ?: "unknown error")
|
||||
)
|
||||
setContentType(response)
|
||||
|
Reference in New Issue
Block a user