mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: calc difficulty after each submission
This commit is contained in:
1 parent
139c1e2f59
commit
44ec26ac89
7 files changed
+24
-23
No files matched your search
@@ -29,7 +29,7 @@ export async function udoc() {
|
||||
];
|
||||
let bulk = db.collection('domain.user').initializeUnorderedBulkOp();
|
||||
const cursor = db.collection('record').aggregate(pipeline);
|
||||
while (cursor.hasNext()) {
|
||||
while (await cursor.hasNext()) {
|
||||
const adoc = await cursor.next() as any;
|
||||
bulk.find({
|
||||
domainId: adoc._id.domainId,
|
||||
|
||||
Reference in new issue
Block a user