diff --git a/src/main/kotlin/com/carbonara/core/delivery/SlackDeliveryWebhookController.kt b/src/main/kotlin/com/carbonara/core/delivery/SlackDeliveryWebhookController.kt index 98090a1..9c0a29a 100644 --- a/src/main/kotlin/com/carbonara/core/delivery/SlackDeliveryWebhookController.kt +++ b/src/main/kotlin/com/carbonara/core/delivery/SlackDeliveryWebhookController.kt @@ -1,7 +1,6 @@ package com.carbonara.core.delivery import com.carbonara.core.order.OrderService -import com.fasterxml.jackson.databind.JsonNode import mu.KotlinLogging import org.springframework.web.bind.annotation.PostMapping import org.springframework.web.bind.annotation.RestController @@ -14,9 +13,9 @@ class SlackDeliveryWebhookController( // Potential dos attack endpoint, introduce rate limiting @PostMapping("/slack-delivery-status", "application/x-www-form-urlencoded") - suspend fun handleMollieWebhook(requestBody: JsonNode) { + suspend fun handleMollieWebhook(requestBody: String) { log.info("--Start Slack--") - log.info(requestBody.toString()) + log.info(requestBody) log.info("--End Slack--") }