mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00:00
Delete hosted projects from database when connection is lost
This commit is contained in:
parent
895c365485
commit
26b5653427
1 changed files with 5 additions and 0 deletions
|
@ -1424,6 +1424,11 @@ impl Database {
|
|||
}
|
||||
}
|
||||
|
||||
project::Entity::delete_many()
|
||||
.filter(project::Column::HostConnectionId.eq(connection_id.0 as i32))
|
||||
.exec(&*tx)
|
||||
.await?;
|
||||
|
||||
Ok((room_id, left_projects))
|
||||
})
|
||||
.await
|
||||
|
|
Loading…
Reference in a new issue