fix(server): pairing tokens work on Node versions that cannot bind booleans (#16730)

This commit is contained in:
chise authored and GitHub committed 2026-10-08 11:04:26 -07:00
1 parent a6ec88f7a7
commit 4daec109cd
1 file changed
+1 -1
@@ -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 (