Skip to content

Commit

Permalink
Put orderId into button values
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellBerlin committed Aug 30, 2024
1 parent 8bd8281 commit 97a4077
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/main/kotlin/com/carbonara/core/slack/SlackMessageService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,25 @@ class SlackMessageService {
button {
text("ACCEPT", emoji = true)
style("primary")
value("processing_order")
actionId("processing_order")
value(orderId)
actionId("accept")
}
button {
text("DELIVERY IN PROGRESS", emoji = true)
style("primary")
value("delivery_in_progress")
value(orderId)
actionId("delivery_in_progress")
}
button {
text("DELIVERED", emoji = true)
style("danger")
value("delivered")
value(orderId)
actionId("delivered")
}
button {
text("CANCELLED", emoji = true)
style("danger")
value("cancelled")
value(orderId)
actionId("cancelled")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SlackDeliveryWebhookController(

// TODO: Handle webhook

@PostMapping("/slack-delivery-status", "application/x-www-form-urlencoded")
@PostMapping("/slack-delivery-status", consumes = ["application/x-www-form-urlencoded"])
suspend fun handleSlackWebhook(requestBody: SlackWebhookRequestBody) {
log.info("--Start Slack--")
log.info(requestBody.payload)
Expand Down

0 comments on commit 97a4077

Please sign in to comment.