Delete hosted projects from database when connection is lost

This commit is contained in:
Antonio Scandurra 2022-12-09 12:06:12 +01:00
parent 895c365485
commit 26b5653427

View file

@ -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