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.

im a dumbass

Steven Tey5e0b0695e01e
diff --git a/apps/web/app/api/links/[linkId]/route.ts b/apps/web/app/api/links/[linkId]/route.ts
index 1e78a7f335..b587ae4391 100644
--- a/apps/web/app/api/links/[linkId]/route.ts
+++ b/apps/web/app/api/links/[linkId]/route.ts
@@ -40,7 +40,7 @@ export const PUT = withAuth(
project,
});
- if (!processedLink) {
+ if (error) {
return new Response(error, { status, headers });
}
diff --git a/apps/web/app/api/links/route.ts b/apps/web/app/api/links/route.ts
index b8ffa1829b..296dbb5251 100644
--- a/apps/web/app/api/links/route.ts
+++ b/apps/web/app/api/links/route.ts
@@ -53,7 +53,7 @@ export const POST = withAuth(
session,
});
- if (!link) {
+ if (error) {
return new Response(error, { status, headers });
}