fix ci warnings

This commit is contained in:
undefined committed 2025-07-24 14:00:13 +08:00
1 parent 98d9ddf97a
commit 4b2d4c74cd
13 files changed
+30 -22

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ export default class ElasticSearchService extends Service {
},
});
let hits = res.hits.hits.map((i) => i._id);
if (!opts.skip) {
if (!opts?.skip) {
let pdoc = await ProblemModel.get(domainId, +q || q, ProblemModel.PROJECTION_LIST);
if (pdoc) {
hits = hits.filter((i) => i !== `${pdoc.domainId}/${pdoc.docId}`);