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.

final change

Steven Tey4d31bbc91b47
diff --git a/apps/web/app/api/track/visit/route.ts b/apps/web/app/api/track/visit/route.ts
index 43e0089570..b89ee2bd56 100644
--- a/apps/web/app/api/track/visit/route.ts
+++ b/apps/web/app/api/track/visit/route.ts
@@ -1,7 +1,5 @@
import { verifyAnalyticsAllowedHostnames } from "@/lib/analytics/verify-analytics-allowed-hostnames";
import { DubApiError, handleAndReturnErrorResponse } from "@/lib/api/errors";
-import { linkCache } from "@/lib/api/links/cache";
-import { includeTags } from "@/lib/api/links/include-tags";
import { createId, parseRequestBody } from "@/lib/api/utils";
import { getLinkWithAllowedHostnames } from "@/lib/planetscale/get-link-with-allowed-hostnames";
import { recordClick, recordLink } from "@/lib/tinybird";
@@ -86,11 +84,9 @@ export const POST = withAxiom(
folderId: rootDomainLink.folderId,
userId: rootDomainLink.userId,
},
- include: includeTags,
});
- waitUntil(
- Promise.allSettled([linkCache.set(newLink), recordLink(newLink)]),
- );
+ // TODO: we might need to set redis cache when we start using redis to fetch link data
+ waitUntil(recordLink(newLink));
link = {
...newLink,