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.

Delete record-analytics.ts

Steven Teyd3f0ed204e5f
diff --git a/apps/web/lib/tinybird/record-analytics.ts b/apps/web/lib/tinybird/record-analytics.ts
deleted file mode 100644
index e2756f374b..0000000000
--- a/apps/web/lib/tinybird/record-analytics.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-// Record analytics API usage in Tinybird
-export async function recordApiUsage({
- workspaceId,
-}: {
- workspaceId: string;
-}): Promise<Response> {
- return await fetch(
- `${process.env.TINYBIRD_API_URL}/v0/events?name=dub_api_usage&wait=true`,
- {
- method: "POST",
- headers: {
- Authorization: `Bearer ${process.env.TINYBIRD_API_KEY}`,
- },
- body: JSON.stringify({
- workspaceId,
- timestamp: new Date(Date.now()).toISOString(),
- }),
- },
- );
-}