Get basic calls test passing again

This commit is contained in:
Antonio Scandurra 2022-11-11 18:53:23 +01:00
parent 1135aeecb8
commit 9f39dcf7cf

View file

@ -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)