diff --git a/app/Console/Commands/Grapper/Betsapi/Willhill.php b/app/Console/Commands/Grapper/Betsapi/Willhill.php index 58902d3e..57d16d11 100644 --- a/app/Console/Commands/Grapper/Betsapi/Willhill.php +++ b/app/Console/Commands/Grapper/Betsapi/Willhill.php @@ -27,7 +27,7 @@ class Willhill $res = Odds3way::with('event')->where('bookmaker_id', $bookmaker_id)->get(); foreach ($res as $value) { - if ($value->event->starttime > Carbon::now() && ! $value->event->betsapi_id) { + if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && ! $value->event->betsapi_id) { $collection[] = [ 'txodds_id' => $value->event_id, 'willhill_id' => $value->bmoid, @@ -37,7 +37,7 @@ class Willhill } $res = Odds2way::with('event')->where('bookmaker_id', $bookmaker_id)->get(); foreach ($res as $value) { - if ($value->event->starttime > Carbon::now() && ! $value->event->betsapi_id) { + if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && ! $value->event->betsapi_id) { $collection[] = [ 'txodds_id' => $value->event_id, 'willhill_id' => $value->bmoid,