mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
fix querying with duplicated players
This commit is contained in:
parent
76ee1f6cc3
commit
c7c8c21322
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class DemoListProvider extends BaseProvider {
|
|||
$query->createNamedParameter($userIds, Connection::PARAM_INT_ARRAY)))
|
||||
->groupBy('demo_id')
|
||||
->having($query->expr()->eq(
|
||||
'COUNT(user_id)',
|
||||
'COUNT(DISTINCT(user_id))',
|
||||
$query->createNamedParameter(\count($userIds), PDO::PARAM_INT)
|
||||
));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue