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.

fix ts issue

Steven Tey99174c89f4a2
diff --git a/apps/web/lib/middleware/bitly.ts b/apps/web/lib/middleware/bitly.ts
index 4cdd880adf..ba49bb07a6 100644
--- a/apps/web/lib/middleware/bitly.ts
+++ b/apps/web/lib/middleware/bitly.ts
@@ -1,7 +1,5 @@
import { APP_DOMAIN } from "@dub/utils";
-import { EdgeLinkProps } from "../planetscale";
-
// Create a new Bitly-hosted link to Dub on-demand (e.g. buff.ly)
export const importBitlyLink = async ({
domain,
@@ -20,7 +18,7 @@ export const importBitlyLink = async ({
return null;
}
- return (await result.json()) as EdgeLinkProps;
+ return await result.json();
} catch (e) {
console.error("[Bitly] Error crawling Bitly link", e);
return null;