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

Drop the .toLowerCase() call when building the cache key's targetValue so
it matches whatever detectTarget returns. detectTarget already normalizes
domains to lowercase; keywords are passed through as-is, so lowercasing
again folded otherwise-distinct keyword queries into the same cache
entry.
This commit is contained in:
Ben Senescu 2026-04-23 11:41:44 -04:00 committed by GitHub
parent faf7a294a3
commit 4c8a3305ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
});