fix refunded bookings

This commit is contained in:
Omair Saleh
2022-11-24 22:33:34 +08:00
parent a4b22f92d1
commit 3468864687
+1 -1
View File
@@ -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;
}