mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
core: export HomeHandler
This commit is contained in:
1 parent
8bb072a5a4
commit
b13bf24031
5 files changed
+6
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user