Skip to content

Commit

Permalink
fix endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Jul 13, 2024
1 parent 3f30f02 commit 09cd27b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Traits/Endpoints/UseOdds.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ public function getOddsForEvent(SportsEnum $sport, string $event, $params)
{
$this->validateParams($params, requiredParams: ['regions']);

return $this->decodeResponse($this->get("/sports/{$sport}/events/{$event}/odds"));
return $this->decodeResponse($this->get("/sports/{$sport->value}/events/{$event}/odds"));
}
}
2 changes: 1 addition & 1 deletion src/Traits/Endpoints/UseSports.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public function getSports($params = [])

public function getScoresForSport(SportsEnum $sport)
{
return $this->decodeResponse($this->get("/sports/{$sport}/scores"));
return $this->decodeResponse($this->get("/sports/{$sport->value}/scores"));
}
}

0 comments on commit 09cd27b

Please sign in to comment.