Send worktree updates after project metadata has been sent

This commit is contained in:
Antonio Scandurra 2022-11-16 14:58:11 +01:00
parent eeb32fa888
commit 117458f4f6
3 changed files with 56 additions and 27 deletions

View file

@ -1561,7 +1561,7 @@ where
let query = format!(
"
DELETE FROM worktrees
WHERE project_id = ? AND worktree_id NOT IN ({params})
WHERE project_id = ? AND id NOT IN ({params})
",
);
@ -1580,6 +1580,7 @@ where
WHERE project_id = $1 AND is_host = FALSE
",
)
.bind(project_id)
.fetch(&mut tx);
while let Some(connection_id) = db_guest_connection_ids.next().await {
guest_connection_ids.push(ConnectionId(connection_id? as u32));