From 2b1e7d5acd87541e659cc1ec2f5bf048ecef7e1c Mon Sep 17 00:00:00 2001 From: Seth Sharp Date: Sun, 28 Jul 2024 16:21:48 +1000 Subject: [PATCH] fix sport events endpoint bug --- src/OddsClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OddsClient.php b/src/OddsClient.php index cf75e04..b7e7aa6 100644 --- a/src/OddsClient.php +++ b/src/OddsClient.php @@ -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"); } /**