From 3468864687a03d69c17ee2ca8d99f07e09300937 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Thu, 24 Nov 2022 22:33:34 +0800 Subject: [PATCH] fix refunded bookings --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index a2fee9a4..b253c2f4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -458,7 +458,7 @@ Route::get('/refund/fix', function(){ foreach ($bookings as $booking){ $payments = $booking->transactions()->where('type', TransactionType::PAYMENT)->get(); foreach ($payments as $payment){ - if($payment->status = ApprovalStatus::APPROVED){ + if($payment->status === ApprovalStatus::APPROVED){ $notPlaced[] = $booking; continue; }