summary refs log tree commit diff
path: root/src/api/routes/users/@me/mfa/webauthn
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-19 17:32:52 +0100
committerRory& <root@rory.gay>2025-12-19 17:33:11 +0100
commit11a0744edc6802d98b72a273b459ae24695f0e62 (patch)
tree106e18dd84cddc0a57c959d2f28d12046489c3d4 /src/api/routes/users/@me/mfa/webauthn
parentMerge pull request #1446 from CyberL1/refactor/gh-embed-length (diff)
downloadserver-ts-11a0744edc6802d98b72a273b459ae24695f0e62.tar.xz
DEPRECATION: Move most select queries to object instead of string[]
Diffstat (limited to 'src/api/routes/users/@me/mfa/webauthn')
-rw-r--r--src/api/routes/users/@me/mfa/webauthn/credentials/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts

index 7bd29a57..50bf341c 100644 --- a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts +++ b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
@@ -80,7 +80,7 @@ router.post( where: { id: req.user_id, }, - select: ["data", "id", "disabled", "deleted", "totp_secret", "mfa_enabled", "username"], + select: { data: true, id: true, disabled: true, deleted: true, totp_secret: true, mfa_enabled: true, username: true }, relations: ["settings"], });