TypeScript
fix(server): pairing tokens work on Node versions that cannot bind booleans (#16730)
chise4daec109cdf8
diff --git a/apps/server/src/persistence/AuthPairingLinks.ts b/apps/server/src/persistence/AuthPairingLinks.tsindex ca18088b4bf..623fc8159db 100644--- a/apps/server/src/persistence/AuthPairingLinks.ts+++ b/apps/server/src/persistence/AuthPairingLinks.ts@@ -172,7 +172,7 @@ export const make = Effect.gen(function* () {proof_key_thumbprint IS NULLOR proof_key_thumbprint = ${proofKeyThumbprint})- AND (${requestedScopes === undefined} OR EXISTS (+ AND (${requestedScopes === undefined ? 1 : 0} OR EXISTS (SELECT 1FROM json_each(${JSON.stringify(requestedScopes ?? [])}) AS requestedWHERE requested.value IN (