Skip to content

Commit

Permalink
update categorie odd order
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisGautier committed Nov 24, 2023
1 parent 94b37cc commit a4b7d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/OddController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function index()
$odds = Odd::orderBy('id','asc')->get();

foreach ($odds as $odd) {
$odd->categorieOdd;
$odd->categorieOdd = $odd->categorieOdd()->orderBy('id', 'asc')->get();
$count = $this->countOscByOdd($odd->id);
$odd->count_osc = $count;
}
Expand Down

0 comments on commit a4b7d9e

Please sign in to comment.