feat(sync): limit CTS fetch to next 10 services
This commit is contained in:
parent
89ddbba737
commit
a5a520c754
|
|
@ -156,7 +156,9 @@ private function fetchEvents(): array
|
|||
$fetcher = $this->eventFetcher ?? function (): array {
|
||||
$this->configureApi();
|
||||
|
||||
return EventRequest::where('from', Carbon::now()->toDateString())->get();
|
||||
return EventRequest::where('from', Carbon::now()->toDateString())
|
||||
->where('to', Carbon::now()->addMonths(3)->toDateString())
|
||||
->get();
|
||||
};
|
||||
|
||||
return $this->logApiCall('fetchEvents', 'events', fn (): array => $fetcher());
|
||||
|
|
|
|||
Loading…
Reference in a new issue