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.

rearrange

Steven Tey6e8bfd3c6ca0
diff --git a/apps/web/lib/api/domains.ts b/apps/web/lib/api/domains.ts
index b88d900f37..c22d8892bb 100644
--- a/apps/web/lib/api/domains.ts
+++ b/apps/web/lib/api/domains.ts
@@ -193,9 +193,9 @@ export async function setRootDomain({
}),
recordLink({
link: {
+ id,
domain: newDomain || domain,
key: "_root",
- id,
url: url || "",
projectId,
},
@@ -258,11 +258,11 @@ export async function deleteDomainAndLinks(
// record delete in tinybird
recordLink({
link: {
+ id: domainData.id,
domain,
key: "_root",
- projectId: domainData.projectId,
- id: domainData.id,
url: domainData.target || "",
+ projectId: domainData.projectId,
},
deleted: true,
}),