core: optimize scoreboard

This commit is contained in:
undefined committed 2022-11-28 23:56:59 +08:00
1 parent f08ac664da
commit af0649f471
13 files changed
+55 -102

No files matched your search

+1 -1
View File
@@ -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;