Skip to content

Open source alternative to Semrush and Ahrefs

fix: preserve query case in brand lookup cache key (#133)

Ben Senescu4c8a3305edb7
diff --git a/src/server/features/ai-search/services/brandLookup.ts b/src/server/features/ai-search/services/brandLookup.ts
index 42428004..2e9b6b67 100644
--- a/src/server/features/ai-search/services/brandLookup.ts
+++ b/src/server/features/ai-search/services/brandLookup.ts
@@ -48,7 +48,7 @@ export async function getBrandLookup(
organizationId: billingCustomer.organizationId,
projectId: input.projectId,
targetType: detected.type,
- targetValue: detected.value.toLowerCase(),
+ targetValue: detected.value,
locationCode: input.locationCode,
languageCode: input.languageCode,
});