core: export HomeHandler

This commit is contained in:
undefined committed 2022-03-10 22:18:28 +08:00
1 parent 8bb072a5a4
commit b13bf24031
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ export const RpTypes: Record<string, RpDef> = {
global.Hydro.model.rp = RpTypes;
export async function calcLevel(domainId: string, report: Function) {
const filter = { rp: { $exists: true } };
const filter = { rp: { $gt: 0 } };
const ducnt = await domain.getMultiUserInDomain(domainId, filter).count();
await domain.setMultiUserInDomain(domainId, {}, { level: 0, rank: null });
if (!ducnt) return;