We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2cce02 commit 3a3364eCopy full SHA for 3a3364e
1 file changed
apps/api/src/db/queries.ts
@@ -551,7 +551,7 @@ export async function verifyApiKey(
551
const [apiKeyRecord] = await db
552
.select()
553
.from(apiKeys)
554
- .where(eq(apiKeys.id, hashedApiKey));
+ .where(eq(apiKeys.key, hashedApiKey));
555
556
if (!apiKeyRecord || !apiKeyRecord.organizationId) {
557
return null; // Key not found or not associated with an organization
0 commit comments