Skip to content
Permalink
Browse files

Fixed: Same table is being reserved for same time slot multiple users

  • Loading branch information
sampoyigi committed Jan 9, 2020
1 parent d52a155 commit c5ef431652053f3ffc66124c7b317c18145f606e
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/admin/models/Reservations_model.php
@@ -266,7 +266,7 @@ public static function findReservedTables($location, $dateTime)
$query = self::with('tables');
$query->whereLocationId($location->getKey());
$query->whereBetweenDate($dateTime->toDateTimeString());
$query->where('status_id', setting('confirmed_reservation_status'));
$query->whereNotIn('status_id', [0, setting('canceled_reservation_status')]);
$result = $query->get();

return $result->pluck('tables')->flatten()->keyBy('table_id');

0 comments on commit c5ef431

Please sign in to comment.
You can’t perform that action at this time.