mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-22 08:56:42 -06:00
Remove unneeded DISTINCT from list short URLs query
This commit is contained in:
parent
194a7b0e57
commit
cb3a690294
@ -42,7 +42,7 @@ class ShortUrlListRepository extends EntitySpecificationRepository implements Sh
|
|||||||
|
|
||||||
$qb = $this->createListQueryBuilder($filtering);
|
$qb = $this->createListQueryBuilder($filtering);
|
||||||
$qb->select(
|
$qb->select(
|
||||||
'DISTINCT s AS shortUrl',
|
's AS shortUrl',
|
||||||
'(' . $buildVisitsSubQuery('v', excludingBots: false) . ') AS ' . OrderableField::VISITS->value,
|
'(' . $buildVisitsSubQuery('v', excludingBots: false) . ') AS ' . OrderableField::VISITS->value,
|
||||||
'(' . $buildVisitsSubQuery('v2', excludingBots: true) . ') AS ' . OrderableField::NON_BOT_VISITS->value,
|
'(' . $buildVisitsSubQuery('v2', excludingBots: true) . ') AS ' . OrderableField::NON_BOT_VISITS->value,
|
||||||
// This is added only to have a consistent order by title between database engines
|
// This is added only to have a consistent order by title between database engines
|
||||||
|
Loading…
Reference in New Issue
Block a user