mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&ui: add passkey login support
This commit is contained in:
8 files changed
+82
-23
No files matched your search
@@ -81,7 +81,7 @@ export const projection = <T, S extends ProjectionSchema<T>>(input: T, schema: S
|
||||
for (const key of Reflect.ownKeys(input)) {
|
||||
const schemaIt = schema[key];
|
||||
if (!schemaIt) continue;
|
||||
if (schemaIt === 1) result[key] = input[key];
|
||||
if (schemaIt === 1 || !input[key]) result[key] = input[key];
|
||||
else result[key] = projection(input[key], schemaIt);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in new issue
Block a user