This commit is contained in:
Mikayla Maki 2023-05-10 20:09:37 -07:00
parent f5c633e80c
commit adfbbf21b2
No known key found for this signature in database
3 changed files with 18 additions and 9 deletions

View file

@ -1606,11 +1606,16 @@ impl Database {
while let Some(db_status_entry) = db_repository_statuses.next().await {
let db_status_entry = db_status_entry?;
if db_status_entry.is_deleted {
repository.removed_worktree_repo_paths.push(db_status_entry.repo_path);
repository
.removed_worktree_repo_paths
.push(db_status_entry.repo_path);
} else {
repository.updated_worktree_statuses.push(proto::StatusEntry {
repo_path: db_status_entry.repo_path, status: db_status_entry.status as i32
});
repository
.updated_worktree_statuses
.push(proto::StatusEntry {
repo_path: db_status_entry.repo_path,
status: db_status_entry.status as i32,
});
}
}
}