summary refs log tree commit diff
path: root/src/api/routes/users/@me/mfa/webauthn
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-16 11:31:24 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-16 11:31:24 +1100
commit4d06b86d7b9867f77aafc91512e8c4acf3ae3eff (patch)
tree442353828a5c3a667e078e657198c3b571a9df91 /src/api/routes/users/@me/mfa/webauthn
parentRemove client_test folder (diff)
downloadserver-4d06b86d7b9867f77aafc91512e8c4acf3ae3eff.tar.xz
Fix UserSettings relation being in `select` rather than `relations`
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 a33e06ce..85fb251c 100644
--- a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
+++ b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
@@ -89,11 +89,11 @@ router.post(
 				"id",
 				"disabled",
 				"deleted",
-				"settings",
 				"totp_secret",
 				"mfa_enabled",
 				"username",
 			],
+			relations: ["settings"],
 		});
 
 		if (isGenerateSchema(req.body)) {