core: 修复rating计算错误的问题

This commit is contained in:
undefined committed 2021-06-20 10:56:00 +08:00
1 parent ecadd08cec
commit 5cae54ed0a
4 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@ export async function calcLevel(domainId: string, report: Function) {
async function runInDomain(id: string, isSub: boolean, report: Function) {
const info = await domain.getUnion(id);
info.union.push(id);
if (info) info.union.push(id);
const udict: ND = {};
const deltaudict: ND = {};
const domainId = info ? { $in: info.union } : { $exists: false };