Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Get basic calls test passing again

Antonio Scandurra9f39dcf7cf1d
diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rs
index fc5e3c242b9..e092bd95014 100644
--- a/crates/collab/src/db.rs
+++ b/crates/collab/src/db.rs
@@ -1110,7 +1110,7 @@ where
FROM projects, project_collaborators
WHERE
projects.room_id = $1 AND
- projects.user_id = $2 AND
+ projects.host_user_id = $2 AND
projects.id = project_collaborators.project_id
",
)
@@ -1144,7 +1144,7 @@ where
sqlx::query(
"
DELETE FROM projects
- WHERE room_id = $1 AND user_id = $2
+ WHERE room_id = $1 AND host_user_id = $2
",
)
.bind(room_id)