From 471485c7a7c9520a1c887f191f9f1e70ab4cef3e Mon Sep 17 00:00:00 2001 From: unrenamed Date: Wed, 30 Oct 2024 12:31:58 +0200 Subject: [PATCH 1/2] fix(web): typo in domain transfer error message --- apps/web/app/api/domains/[domain]/transfer/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/api/domains/[domain]/transfer/route.ts b/apps/web/app/api/domains/[domain]/transfer/route.ts index 8aedb2d3da..f9e0d023a4 100644 --- a/apps/web/app/api/domains/[domain]/transfer/route.ts +++ b/apps/web/app/api/domains/[domain]/transfer/route.ts @@ -23,7 +23,7 @@ export const POST = withWorkspace( if (registeredDomain) { throw new DubApiError({ code: "forbidden", - message: "You cannot delete a Dub-provisioned domain.", + message: "You cannot transfer a Dub-provisioned domain.", }); } From 2cfcb47a29e576fde0362544437ab613f21bfff1 Mon Sep 17 00:00:00 2001 From: unrenamed Date: Wed, 30 Oct 2024 12:55:04 +0200 Subject: [PATCH 2/2] fix(ui): resolve Zod schema parsing issue on domain transfer --- apps/web/app/api/domains/[domain]/transfer/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/app/api/domains/[domain]/transfer/route.ts b/apps/web/app/api/domains/[domain]/transfer/route.ts index f9e0d023a4..39219548c9 100644 --- a/apps/web/app/api/domains/[domain]/transfer/route.ts +++ b/apps/web/app/api/domains/[domain]/transfer/route.ts @@ -108,6 +108,9 @@ export const POST = withWorkspace( projectId: newWorkspaceId, primary: newWorkspace.domains.length === 0, }, + include: { + registeredDomain: true, + }, }), prisma.project.update({ where: { id: workspace.id },