We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 928a050 + e798b0b commit c3c1354Copy full SHA for c3c1354
apps/web/app/api/domains/[domain]/transfer/route.ts
@@ -23,7 +23,7 @@ export const POST = withWorkspace(
23
if (registeredDomain) {
24
throw new DubApiError({
25
code: "forbidden",
26
- message: "You cannot delete a Dub-provisioned domain.",
+ message: "You cannot transfer a Dub-provisioned domain.",
27
});
28
}
29
@@ -108,6 +108,9 @@ export const POST = withWorkspace(
108
projectId: newWorkspaceId,
109
primary: newWorkspace.domains.length === 0,
110
},
111
+ include: {
112
+ registeredDomain: true,
113
+ },
114
}),
115
prisma.project.update({
116
where: { id: workspace.id },
0 commit comments