diff --git a/src/main/kotlin/com/carbonara/core/slack/SlackWebhookController.kt b/src/main/kotlin/com/carbonara/core/slack/SlackWebhookController.kt index 1364c4a..6ff71b9 100644 --- a/src/main/kotlin/com/carbonara/core/slack/SlackWebhookController.kt +++ b/src/main/kotlin/com/carbonara/core/slack/SlackWebhookController.kt @@ -17,7 +17,7 @@ class SlackDeliveryWebhookController( val slackPayload = objectMapper.readValue(requestBody.payload, SlackPayload::class.java) log.info("Received slack webhook for orderId=${slackPayload.actions.first().value} " + - "and userName=${slackPayload.user.userName}") + "and userName=${slackPayload.user.username}") slackPayload.actions.forEach { action -> slackService.handleOrderStatusUpdate( @@ -62,5 +62,5 @@ data class SlackMessage( @JsonIgnoreProperties(ignoreUnknown = true) data class SlackUser( val id: String, - val userName: String + val username: String )