diff --git a/composer.json b/composer.json index 7f1ef082..58e9d40d 100644 --- a/composer.json +++ b/composer.json @@ -73,5 +73,8 @@ "serve": "php -S 0.0.0.0:8000 -t public/", "test": "phpunit --coverage-clover build/clover.xml", "pretty-test": "phpunit --coverage-html build/coverage" + }, + "config": { + "process-timeout": 0 } } diff --git a/module/Core/src/Repository/VisitRepository.php b/module/Core/src/Repository/VisitRepository.php index 743427f6..f86017a4 100644 --- a/module/Core/src/Repository/VisitRepository.php +++ b/module/Core/src/Repository/VisitRepository.php @@ -29,12 +29,6 @@ class VisitRepository extends EntityRepository implements VisitRepositoryInterfa $shortUrl = $shortUrl instanceof ShortUrl ? $shortUrl : $this->getEntityManager()->find(ShortUrl::class, $shortUrl); - if (! isset($dateRange) || $dateRange->isEmpty()) { - $startDate = $shortUrl->getDateCreated(); - $endDate = clone $startDate; - $endDate->add(new \DateInterval('P2D')); - $dateRange = new DateRange($startDate, $endDate); - } $qb = $this->createQueryBuilder('v'); $qb->where($qb->expr()->eq('v.shortUrl', ':shortUrl'))