mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: 修复部分域rp计算异常的问题
This commit is contained in:
1 parent
a09d7b4b70
commit
cd3c74649c
2 files changed
+2
-2
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user