Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/server/src/persistence/AuthPairingLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const make = Effect.gen(function* () {
proof_key_thumbprint IS NULL
OR proof_key_thumbprint = ${proofKeyThumbprint}
)
AND (${requestedScopes === undefined} OR EXISTS (
AND (${requestedScopes === undefined ? 1 : 0} OR EXISTS (
SELECT 1
FROM json_each(${JSON.stringify(requestedScopes ?? [])}) AS requested
WHERE requested.value IN (
Expand Down
Loading