Fill the flight subfleets even if there's a simbrief

This commit is contained in:
Nabeel Shahzad 2021-03-20 17:28:54 -04:00
parent 4394487392
commit f9f0ee826d

View File

@ -63,10 +63,10 @@ class BidService extends Service
$bids = Bid::with($with)->where(['user_id' => $user->id])->get(); $bids = Bid::with($with)->where(['user_id' => $user->id])->get();
foreach ($bids as $bid) { foreach ($bids as $bid) {
if (empty($bid->flight->simbrief)) { // if (empty($bid->flight->simbrief)) {
$bid->flight = $this->flightSvc->filterSubfleets($user, $bid->flight); $bid->flight = $this->flightSvc->filterSubfleets($user, $bid->flight);
$bid->flight = $this->fareSvc->getReconciledFaresForFlight($bid->flight); $bid->flight = $this->fareSvc->getReconciledFaresForFlight($bid->flight);
} // }
} }
return $bids; return $bids;