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:
parent
faf7a294a3
commit
4c8a3305ed
@ -48,7 +48,7 @@ export async function getBrandLookup(
|
|||||||
organizationId: billingCustomer.organizationId,
|
organizationId: billingCustomer.organizationId,
|
||||||
projectId: input.projectId,
|
projectId: input.projectId,
|
||||||
targetType: detected.type,
|
targetType: detected.type,
|
||||||
targetValue: detected.value.toLowerCase(),
|
targetValue: detected.value,
|
||||||
locationCode: input.locationCode,
|
locationCode: input.locationCode,
|
||||||
languageCode: input.languageCode,
|
languageCode: input.languageCode,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user