Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix schema issues

Sara Vieira4b9a5a0273c6
diff --git a/app/shared/db/user.server.ts b/app/shared/db/user.server.ts
index ccb6263e53..879cca36ca 100644
--- a/app/shared/db/user.server.ts
+++ b/app/shared/db/user.server.ts
@@ -28,7 +28,7 @@ const genericCreateAccount = async (
return connectedUser;
}
- const existingUserWithEmail = await prisma.user.findUnique({
+ const existingUserWithEmail = await prisma.user.findFirst({
where: {
email: userData.email,
},