Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 1775bbd

Browse files
committed
fix(repository): De-duplicate the question
Fixed #77
1 parent f4c7e60 commit 1775bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Repository/SolutionEventRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function listLeaderboard(?Group $group, string $interval): array
149149

150150
$qb = $this->createQueryBuilder('e')
151151
->from(User::class, 'u')
152-
->select('u AS user', 'COUNT(e.id) AS count')
152+
->select('u AS user', 'COUNT(DISTINCT e.question) AS count')
153153
->where('e.submitter = u')
154154
->andWhere('e.status = :status')
155155
->andWhere('e.createdAt >= :startedFrom')

0 commit comments

Comments
 (0)