From cd3c74649cd26be20eedf9f419e85502380b4ec5 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 23 Jun 2021 01:11:55 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=9F=9Frp=E8=AE=A1=E7=AE=97=E5=BC=82=E5=B8=B8=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hydrooj/package.json | 2 +- packages/hydrooj/src/script/rating.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index a7be04e61..316ca8bb5 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "2.28.48", + "version": "2.28.49", "bin": "bin/hydrooj.js", "main": "dist/loader.js", "typings": "dist/loader.d.ts", diff --git a/packages/hydrooj/src/script/rating.ts b/packages/hydrooj/src/script/rating.ts index b1f1d8fd6..08306d230 100644 --- a/packages/hydrooj/src/script/rating.ts +++ b/packages/hydrooj/src/script/rating.ts @@ -123,7 +123,7 @@ async function runInDomain(id: string, isSub: boolean, report: Function) { if (info) info.union.push(id); const udict: ND = {}; const deltaudict: ND = {}; - const domainId = info ? { $in: info.union } : { $exists: false }; + const domainId = info ? { $in: info.union } : id; const dudocs = unionWith([ ...await domain.getMultiUserInDomain(id).toArray(), ...await domain.getMultiUserInDomain('', { domainId }).toArray(),