Skip to content

Commit

Permalink
update odd order
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisGautier committed Nov 26, 2023
1 parent 1ca10a0 commit 145bfe1
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 @@ -87,7 +87,7 @@ public function store(Request $request)
public function show($id)
{
$odd = Odd::find($id);
$odd->categorieOdd;
$odd->categorie_odd = $odd->categorieOdd()->orderBy('id', 'asc')->get();
$count = $this->countOscByOdd($id);
$odd->count_osc = $count;
return $this->sendResponse($odd, 'Odd trouvé');
Expand Down

0 comments on commit 145bfe1

Please sign in to comment.