From 5accf7cf4e5c745ca4cff0bf40cc94a37aecd472 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Thu, 11 May 2023 10:21:25 -0700 Subject: [PATCH] Update is_deleted when sending new repositories --- crates/collab/src/db.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rs index 69b561c054..f5175a16a9 100644 --- a/crates/collab/src/db.rs +++ b/crates/collab/src/db.rs @@ -2471,12 +2471,14 @@ impl Database { .update_columns([ worktree_repository_statuses::Column::ScanId, worktree_repository_statuses::Column::Status, + worktree_repository_statuses::Column::IsDeleted, ]) .to_owned(), ) .exec(&*tx) .await?; } + if !repository.removed_worktree_repo_paths.is_empty() { worktree_repository_statuses::Entity::update_many() .filter(