core: update tdoc type

This commit is contained in:
undefined committed 2023-11-25 08:46:41 +08:00
1 parent ba4853602e
commit 039d0c2d4d
7 files changed
+37 -35

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ export const RpTypes: Record<string, RpDef> = {
},
contest: {
async run(domainIds, udict, report) {
const contests: Tdoc<30>[] = await contest.getMulti('', { domainId: { $in: domainIds }, rated: true })
const contests: Tdoc[] = await contest.getMulti('', { domainId: { $in: domainIds }, rated: true })
.limit(10).toArray() as any;
if (contests.length) await report({ message: `Found ${contests.length} contests in ${domainIds[0]}` });
for (const tdoc of contests.reverse()) {