Ken преди 1 месец
родител
ревизия
e0faa9c0ae
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      app/Http/Controllers/Api/Sport.php

+ 1 - 3
app/Http/Controllers/Api/Sport.php

@@ -20,9 +20,7 @@ public function index(): JsonResponse
         $list = SportModel::where("game_time", ">=", $start)
             ->where("game_time", "<", $end)
             ->get()->makeHidden(['id']);
-        $count = SportModel::where("game_time", ">=", $start)
-            ->where("game_time", "<", $end)->count();
-        return $this->success(['list' => $list, 'count' => $count]);
+        return $this->success(['list' => $list]);
     }
 
     public function odds(): JsonResponse