diff --git a/apps/web/app/api/domains/[domain]/transfer/route.ts b/apps/web/app/api/domains/[domain]/transfer/route.ts index cbb3116f4a..af4446b3b4 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.", }); } @@ -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 },