core: blacklist tools

This commit is contained in:
undefined committed 2021-04-21 13:07:42 +08:00
1 parent 869c3131ca
commit 9b3ea0182b
5 files changed
+18 -37

No files matched your search

+1 -5
View File
@@ -106,7 +106,6 @@ export async function calcLevel(domainId: string, report: Function) {
const levels = global.Hydro.model.builtin.LEVELS;
bulk = coll.initializeUnorderedBulkOp();
for (let i = 0; i < levels.length; i++) {
report({ message: 'Updating users levelled {0}'.format(i) });
const query: FilterQuery<Udoc> = {
domainId,
$and: [{ rank: { $lte: (levels[i] * count) / 100 } }],
@@ -184,10 +183,7 @@ export async function run({ domainId }, report: Function) {
}
export const validate = {
$or: [
{ domainId: 'string' },
{ domainId: 'undefined' },
],
domainId: 'string?',
};
global.Hydro.script.rp = { run, description, validate };