Skip to content

Commit

Permalink
Merge pull request #210 from GeOsmFamily:dev
Browse files Browse the repository at this point in the history
update odd
  • Loading branch information
BorisGautier authored Nov 24, 2023
2 parents c776736 + a0bcadb commit c901fe0
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->categorieOdd = $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 c901fe0

Please sign in to comment.