Excluded deleted entries when initially sending worktrees to guests
Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
co-authored by
Antonio Scandurra
parent
738e161bc6
commit
42e74e7eef
@@ -2390,7 +2390,11 @@ impl Database {
|
|||||||
// Populate worktree entries.
|
// Populate worktree entries.
|
||||||
{
|
{
|
||||||
let mut db_entries = worktree_entry::Entity::find()
|
let mut db_entries = worktree_entry::Entity::find()
|
||||||
.filter(worktree_entry::Column::ProjectId.eq(project_id))
|
.filter(
|
||||||
|
Condition::all()
|
||||||
|
.add(worktree_entry::Column::ProjectId.eq(project_id))
|
||||||
|
.add(worktree_entry::Column::IsDeleted.eq(false)),
|
||||||
|
)
|
||||||
.stream(&*tx)
|
.stream(&*tx)
|
||||||
.await?;
|
.await?;
|
||||||
while let Some(db_entry) = db_entries.next().await {
|
while let Some(db_entry) = db_entries.next().await {
|
||||||
|
|||||||
Reference in New Issue
Block a user