mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-25 10:20:18 -06:00
Removed DISTINCT when counting visits for a short URL
This commit is contained in:
parent
80d41db901
commit
c4ae89a279
@ -95,7 +95,7 @@ class VisitRepository extends EntityRepository implements VisitRepositoryInterfa
|
||||
public function countVisitsByShortCode(string $shortCode, ?string $domain = null, ?DateRange $dateRange = null): int
|
||||
{
|
||||
$qb = $this->createVisitsByShortCodeQueryBuilder($shortCode, $domain, $dateRange);
|
||||
$qb->select('COUNT(DISTINCT v.id)');
|
||||
$qb->select('COUNT(v.id)');
|
||||
|
||||
return (int) $qb->getQuery()->getSingleScalarResult();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user