Skip to content

Commit

Permalink
fix sport events endpoint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Jul 28, 2024
1 parent 96a4c91 commit 2b1e7d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OddsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getScoresForSport(SportsEnum $sport): Response
*/
public function getEventsForSport(SportsEnum $sport): Response
{
return $this->get("/sports/{$sport->name}/events");
return $this->get("/sports/{$sport->value}/events");
}

/**
Expand Down

0 comments on commit 2b1e7d5

Please sign in to comment.