Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

retrieve both cases if key is defined

Steven Tey497597a5f8b0
diff --git a/apps/web/lib/stats.ts b/apps/web/lib/stats.ts
index 06f3d923bb..d482d0f2b8 100644
--- a/apps/web/lib/stats.ts
+++ b/apps/web/lib/stats.ts
@@ -141,7 +141,10 @@ export const getStats = async ({
);
if (key) {
- url.searchParams.append("key", decodeURIComponent(key));
+ url.searchParams.append(
+ "key",
+ `${decodeURIComponent(key)},${decodeURIComponent(key).toLowerCase()}`,
+ );
}
if (interval) {
url.searchParams.append(