Skip to content

Commit

Permalink
Fix tests of order status feature
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellBerlin committed Aug 28, 2024
1 parent ae798c9 commit 485d7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/carbonara/core/order/OrderService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class OrderService(
private suspend fun handlePaidOrder(paymentId: String, paymentStatus: PaymentStatus) {
val order = retrieveOrderFromDatabase(paymentId)

if (order.paymentDetails.internalPaymentStatus == InternalPaymentStatus.PAID) {
if (order.paymentDetails.internalPaymentStatus != InternalPaymentStatus.PAID) {
updateOrderToPaid(order, paymentStatus)

// TODO: trigger delivery
Expand Down

0 comments on commit 485d7f7

Please sign in to comment.