core: 修复部分域rp计算异常的问题

This commit is contained in:
undefined committed 2021-06-23 01:11:55 +08:00
1 parent a09d7b4b70
commit cd3c74649c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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(),