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 user type

Sara Vieiradf5946837bc4
diff --git a/apps/designer/app/shared/db/project.server.ts b/apps/designer/app/shared/db/project.server.ts
index 897e1b559d..4eb0f737e3 100644
--- a/apps/designer/app/shared/db/project.server.ts
+++ b/apps/designer/app/shared/db/project.server.ts
@@ -53,7 +53,7 @@ export const loadManyByUserId = async (
): Promise<Array<Project>> => {
const projects = await prisma.project.findMany({
where: {
- User: {
+ user: {
id: userId,
},
},