diff --git a/app/view/pages/race/live.php b/app/view/pages/race/live.php index 456fd1c..bb54eff 100644 --- a/app/view/pages/race/live.php +++ b/app/view/pages/race/live.php @@ -12,61 +12,71 @@ Laster inn... \ No newline at end of file diff --git a/public/api/v1/race/sync.php b/public/api/v1/race/sync.php index 56fb1e5..febcade 100644 --- a/public/api/v1/race/sync.php +++ b/public/api/v1/race/sync.php @@ -22,15 +22,9 @@ foreach ($times as $time) { $team = $team_mapper->get($time->team_id); - if (!$team) - { - // this should not happen as related times should be deleted with the team - #continue; - } - $row = [ - "n" => $team->name, - "d" => $time->date->getTimestamp() + "name" => $team->name, + "date" => $time->date->getTimestamp() ]; array_push($data, $row);