mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: 添加登录域名记录
This commit is contained in:
1 parent
3c4256be84
commit
66639b14de
4 files changed
+17
-36
No files matched your search
@@ -116,7 +116,6 @@ export async function calcLevel(domainId: string, report: Function) {
|
||||
bulk.find(query).update({ $set: { level: levels[i][0] } });
|
||||
}
|
||||
const i = levels.length - 1;
|
||||
report({ message: 'Updating users levelled {0}'.format(levels[i][0]) });
|
||||
bulk.find({ domainId, rank: { $lte: levels[i][1] } }).update({ $set: { level: levels[i][0] } });
|
||||
await bulk.execute();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user