mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-10 01:03:13 +08:00
Updated VisitRepository::findUnlocatedVisits methods so that it paginates the amount of elements loaded in memory
This commit is contained in:
@@ -26,7 +26,7 @@ class VisitService implements VisitServiceInterface
|
||||
$repo = $this->em->getRepository(Visit::class);
|
||||
$results = $repo->findUnlocatedVisits();
|
||||
|
||||
foreach ($results as [$visit]) {
|
||||
foreach ($results as $visit) {
|
||||
try {
|
||||
/** @var Location $location */
|
||||
$location = $geolocateVisit($visit);
|
||||
|
||||
Reference in New Issue
Block a user