core: calc difficulty after each submission

This commit is contained in:
undefined committed 2021-03-12 17:08:14 +08:00
1 parent 139c1e2f59
commit 44ec26ac89
7 files changed
+24 -23

No files matched your search

+1 -1
View File
@@ -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,