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.

remove archiveDomain method

Kiran K66599e088f79
diff --git a/apps/web/lib/api/domains.ts b/apps/web/lib/api/domains.ts
index 0c430e1f3e..282f33a0cb 100644
--- a/apps/web/lib/api/domains.ts
+++ b/apps/web/lib/api/domains.ts
@@ -207,23 +207,6 @@ export async function setRootDomain({
]);
}
-export async function archiveDomain({
- domain,
- archived,
-}: {
- domain: string;
- archived: boolean;
-}) {
- return await prisma.domain.update({
- where: {
- slug: domain,
- },
- data: {
- archived,
- },
- });
-}
-
/* Delete a domain and all links & images associated with it */
export async function deleteDomainAndLinks(
domain: string,