mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: problem.getPrefixList: handle pid
This commit is contained in:
1 parent
af91a6307d
commit
e479d5266e
3 files changed
+10
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user