mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Removed DISTINCT when counting visits for a short URL
This commit is contained in:
parent
80d41db901
commit
c4ae89a279
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue