优化rating计算速度

This commit is contained in:
masnn committed 2020-06-09 13:22:04 +08:00
1 parent 45f1184d68
commit 55912b087d
22 files changed
+309 -178

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ async function run({ username, password } = {}) {
}
await Promise.all(tasks);
tasks = [
allowFail(domain.add, 'system', 0),
domain.add('system', 0, 'Hydro').catch(() => domain.edit('system', { owner: 0, name: 'Hydro' })),
collUser.updateOne({ _id: 0 }, {
$set: defaults({
_id: 0,