mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-04 05:48:43 +00:00
6.9 - Respecting Reservations
This commit is contained in:
@@ -11,7 +11,7 @@ class Ticket extends Model
|
||||
|
||||
public function scopeAvailable($query)
|
||||
{
|
||||
return $query->whereNull('order_id');
|
||||
return $query->whereNull('order_id')->whereNull('reserved_at');
|
||||
}
|
||||
|
||||
public function reserve()
|
||||
|
||||
Reference in New Issue
Block a user