Revert "Make MarkBookingRefunded synchronous so refunds cancel instantly"

This reverts commit 825320a117.
This commit is contained in:
Nyan Lin Paing
2026-09-03 10:56:55 +07:00
parent 825320a117
commit adabb2c690
2 changed files with 7 additions and 8 deletions
@@ -29,7 +29,7 @@ test('does not touch a booking that already moved on for another reason', functi
expect($booking->refresh()->status)->toBe(BookingStatus::Cancelled);
});
test('does not crash if the booking was soft-deleted before this listener ran', function () {
test('does not crash if the booking was soft-deleted before this queued listener ran', function () {
$booking = Booking::factory()->create(['status' => BookingStatus::Confirmed]);
$payment = Payment::factory()->completed()->create(['booking_id' => $booking->id, 'gateway' => PaymentMethod::KbzMiniApp]);
$refund = Refund::factory()->create(['payment_id' => $payment->id, 'status' => RefundStatus::Completed]);