mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
46 - A Change in Behavior
This commit is contained in:
@@ -43,6 +43,7 @@ class ConcertOrdersController extends Controller
|
||||
return response()->json($order, 201);
|
||||
|
||||
} catch (PaymentFailedException $e) {
|
||||
$reservation->cancel();
|
||||
return response()->json([], 422);
|
||||
} catch (NotEnoughTicketsException $e) {
|
||||
return response()->json([], 422);
|
||||
|
||||
@@ -21,7 +21,7 @@ class Ticket extends Model
|
||||
|
||||
public function release()
|
||||
{
|
||||
$this->update(['order_id' => null]);
|
||||
$this->update(['reserved_at' => null]);
|
||||
}
|
||||
|
||||
public function concert()
|
||||
|
||||
Reference in New Issue
Block a user