Skip to content
Open
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
4 changes: 2 additions & 2 deletions apps/web/e2e/scripts/get-magic-link-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function getMagicLinkToken(): Promise<string> {
const result = await sql`
SELECT identifier, value, expires_at
FROM verification
WHERE value::text ILIKE ${'%"email":"' + email + '"%'}
WHERE value->>'email' = ${email}
AND identifier NOT LIKE 'sign-in-otp-%'
AND expires_at > NOW()
ORDER BY created_at DESC
Expand All @@ -57,4 +57,4 @@ try {
console.error(err instanceof Error ? err.message : String(err))
await sql.end()
process.exit(1)
}
}