API response adjustments.

This commit is contained in:
2024-05-07 22:50:09 +02:00
parent a4ec188cff
commit 7b6d1408f8
3 changed files with 12 additions and 3 deletions
+3
View File
@@ -52,6 +52,9 @@ class FareTableRepository extends ServiceEntityRepository
public function getAllowedGuestNumberOnFareTableList(array $fareTableList): array
{
$fareTableCount = count($fareTableList);
if($fareTableCount == 0) {
return [];
}
$fareTableIdList = \array_map(function (FareTable $element) {
return $element->getId();