Check for bid existing or not

This commit is contained in:
Nabeel Shahzad
2022-02-04 14:21:59 -05:00
parent 88ffee16be
commit 670cb5d811
3 changed files with 51 additions and 0 deletions

View File

@@ -50,6 +50,9 @@ class BidService extends Service
/** @var Bid $bid */
$bid = Bid::with($with)->where(['id' => $bid_id])->first();
if ($bid === null) {
return null;
}
// Reconcile the aircraft for this bid
// TODO: Only do this if there isn't a Simbrief attached?