mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: optimize scoreboard
This commit is contained in:
1 parent
f08ac664da
commit
af0649f471
13 files changed
+55
-102
No files matched your search
@@ -1,4 +1,4 @@
|
||||
export function buildProjection(fields: string[]): Record<string, 1> {
|
||||
export function buildProjection(fields: Array<string | number>): Record<string, 1> {
|
||||
const o = {};
|
||||
for (const k of fields) o[k] = 1;
|
||||
return o;
|
||||
|
||||
Reference in new issue
Block a user