Update Webhook.kt
This commit is contained in:
parent
e9ff93cde1
commit
82c6eda0b7
|
@ -49,10 +49,11 @@ fun Route.includeWebhookHandlingInRoute(
|
|||
transformer(update)
|
||||
}.onSuccess {
|
||||
call.respond(HttpStatusCode.OK)
|
||||
}.onFailure {
|
||||
call.respond(HttpStatusCode.InternalServerError)
|
||||
}
|
||||
} catch (e: Throwable) {
|
||||
exceptionsHandler ?.invoke(e)
|
||||
call.respond(HttpStatusCode.InternalServerError)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue