judge: fix cache prune

This commit is contained in:
undefined committed 2021-04-02 13:14:03 +08:00
1 parent 43c4bfd8e7
commit ba2cbffbfd
3 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ export class ProblemMainHandler extends ProblemHandler {
let sort: number[];
if (q) {
path[1][1] = 'problem_main';
path.push([q, null, null, true]);
path.push([`${this.translate('Keyword')}: ${q}`, null, null, true]);
if (search) {
const result = await search(domainId, q);
query.docId = { $in: result };