feat: refactor onboarding into a multi-step flow with dedicated routes and session state management
This commit is contained in:
@@ -368,6 +368,11 @@ export async function completeOnboarding(input: OnboardingCompleteInput) {
|
||||
const complexSlug = await buildUniqueComplexSlug(input.complexName);
|
||||
|
||||
const result = await db.$transaction(async (tx) => {
|
||||
await tx.user.update({
|
||||
where: { id: user.id },
|
||||
data: { emailVerified: true },
|
||||
});
|
||||
|
||||
const complex = await tx.complex.create({
|
||||
data: {
|
||||
id: uuidv7(),
|
||||
|
||||
Reference in New Issue
Block a user