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.

Update route.ts

Steven Teye909e60eaaaf
diff --git a/apps/web/app/api/domains/[domain]/route.ts b/apps/web/app/api/domains/[domain]/route.ts
index cd5fad7b7e..df1932e193 100644
--- a/apps/web/app/api/domains/[domain]/route.ts
+++ b/apps/web/app/api/domains/[domain]/route.ts
@@ -114,9 +114,9 @@ export const PATCH = withWorkspace(
slug: domain,
},
data: {
- archived,
...(domainUpdated && { slug: newDomain }),
- ...(placeholder && { placeholder }),
+ archived,
+ placeholder,
expiredUrl,
notFoundUrl,
logo: deleteLogo ? null : logoUploaded?.url || oldLogo,