Skip to content

Commit c3c1354

Browse files
authored
Merge pull request #1688 from unrenamed/fix/domain-transfer-validation-error
fix(ui): resolve Zod schema parsing issue on domain transfer
2 parents 928a050 + e798b0b commit c3c1354

File tree

1 file changed

+4
-1
lines changed
  • apps/web/app/api/domains/[domain]/transfer

1 file changed

+4
-1
lines changed

apps/web/app/api/domains/[domain]/transfer/route.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const POST = withWorkspace(
2323
if (registeredDomain) {
2424
throw new DubApiError({
2525
code: "forbidden",
26-
message: "You cannot delete a Dub-provisioned domain.",
26+
message: "You cannot transfer a Dub-provisioned domain.",
2727
});
2828
}
2929

@@ -108,6 +108,9 @@ export const POST = withWorkspace(
108108
projectId: newWorkspaceId,
109109
primary: newWorkspace.domains.length === 0,
110110
},
111+
include: {
112+
registeredDomain: true,
113+
},
111114
}),
112115
prisma.project.update({
113116
where: { id: workspace.id },

0 commit comments

Comments
 (0)