| @@ -1261,9 +1261,14 @@ | ||
| 1261 | 1261 | * Count departures by date |
| 1262 | 1262 | */ |
| 1263 | 1263 | public function countDeparturesByDate(int $tripId, string $date): int |
| 1264 | 1264 | { |
| 1265 | - return $this->repository->countDeparturesByDate($tripId, $date); | |
| 1265 | + // The December 2025 service/controller refactor moved this query to | |
| 1266 | + // TripAvailabilityRepository::countAvailableDeparturesByDate() but left | |
| 1267 | + // this call pointing at TripRepository, where no such method exists — | |
| 1268 | + // so the storefront's date-pricing request (fired whenever a customer | |
| 1269 | + // picks a date) has returned a fatal 500 ever since. | |
| 1270 | + return $this->availabilityRepository->countAvailableDeparturesByDate($tripId, $date); | |
| 1266 | 1271 | } |
| 1267 | 1272 | |
| 1268 | 1273 | /** |
| 1269 | 1274 | * Get trip with availability |