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.

update sdk

Sara Vieira0f86ecc98614
diff --git a/app/shared/db/user.server.ts b/app/shared/db/user.server.ts
index 879cca36ca..ccb6263e53 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.findFirst({
+ const existingUserWithEmail = await prisma.user.findUnique({
where: {
email: userData.email,
},
diff --git a/package.json b/package.json
index 70c84e02a6..db2877144e 100644
--- a/package.json
+++ b/package.json
@@ -47,7 +47,7 @@
"@remix-run/react": "^1.5.1",
"@remix-run/serve": "^1.5.1",
"@stitches/react": "^1.2.7",
- "@webstudio-is/sdk": "0.3.2",
+ "@webstudio-is/sdk": "0.3.2-login",
"bson-objectid": "^2.0.2",
"camelcase": "^6.3.0",
"hyphenate-style-name": "^1.0.4",