Skip to content

Commit bea8e47

Browse files
committed
core: limit ranking to joined users
1 parent 5161670 commit bea8e47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/hydrooj/src/handler/domain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DomainRankHandler extends Handler {
2626
@query('page', Types.PositiveInt, true)
2727
async get(domainId: string, page = 1) {
2828
const [dudocs, upcount, ucount] = await this.paginate(
29-
domain.getMultiUserInDomain(domainId, { uid: { $gt: 1 }, rp: { $gt: 0 } }).sort({ rp: -1 }),
29+
domain.getMultiUserInDomain(domainId, { uid: { $gt: 1 }, rp: { $gt: 0 }, join: true }).sort({ rp: -1 }),
3030
page,
3131
'ranking',
3232
);

0 commit comments

Comments
 (0)