Skip to content

Commit

Permalink
Fix slack request body webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellBerlin committed Sep 23, 2024
1 parent 274dc9b commit 3d8df17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -62,5 +62,5 @@ data class SlackMessage(
@JsonIgnoreProperties(ignoreUnknown = true)
data class SlackUser(
val id: String,
val userName: String
val username: String
)

0 comments on commit 3d8df17

Please sign in to comment.