1
0
Fork 0
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:
Robin Appelman 2022-06-07 20:35:34 +02:00
commit c7c8c21322

View file

@ -65,7 +65,7 @@ class DemoListProvider extends BaseProvider {
$query->createNamedParameter($userIds, Connection::PARAM_INT_ARRAY))) $query->createNamedParameter($userIds, Connection::PARAM_INT_ARRAY)))
->groupBy('demo_id') ->groupBy('demo_id')
->having($query->expr()->eq( ->having($query->expr()->eq(
'COUNT(user_id)', 'COUNT(DISTINCT(user_id))',
$query->createNamedParameter(\count($userIds), PDO::PARAM_INT) $query->createNamedParameter(\count($userIds), PDO::PARAM_INT)
)); ));
} else { } else {