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