mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix problem.getList return type
This commit is contained in:
1 file changed
+1
-1
@@ -363,7 +363,7 @@ export class ProblemModel {
|
||||
domainId: string, pids: number[], canViewHidden: number | boolean = false,
|
||||
doThrow = true, projection = ProblemModel.PROJECTION_PUBLIC, indexByDocIdOnly = false,
|
||||
): Promise<ProblemDict> {
|
||||
if (!pids?.length) return [];
|
||||
if (!pids?.length) return {};
|
||||
const r: Record<number, ProblemDoc> = {};
|
||||
const l: Record<string, ProblemDoc> = {};
|
||||
const q: any = { docId: { $in: pids } };
|
||||
|
||||
Reference in new issue
Block a user