Convert errors into HttpException calls

This commit is contained in:
Nabeel Shahzad
2018-02-22 15:15:00 -06:00
parent 3748ab77d2
commit 53b0bbd936
6 changed files with 73 additions and 21 deletions

View File

@@ -145,7 +145,7 @@ class FlightService extends BaseService
$user_bids = UserBid::where(['user_id' => $user->id])->first();
if($user_bids) {
Log::info('User "' . $user->id . '" already has bids, skipping');
return null;
throw new BidExists();
}
}