core: problem.getPrefixList: handle pid

This commit is contained in:
undefined committed 2022-12-07 17:49:04 +08:00
1 parent af91a6307d
commit e479d5266e
3 files changed
+10 -5

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
export function buildProjection(fields: Array<string | number>): Record<string, 1> {
export function buildProjection(fields: readonly (string | number)[]): Record<string, 1> {
const o = {};
for (const k of fields) o[k] = 1;
return o;