Skip to content

Commit 2b1e7d5

Browse files
committed
fix sport events endpoint bug
1 parent 96a4c91 commit 2b1e7d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OddsClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getScoresForSport(SportsEnum $sport): Response
9393
*/
9494
public function getEventsForSport(SportsEnum $sport): Response
9595
{
96-
return $this->get("/sports/{$sport->name}/events");
96+
return $this->get("/sports/{$sport->value}/events");
9797
}
9898

9999
/**

0 commit comments

Comments
 (0)