[Fix] User deletion & migration

This commit is contained in:
Alex 2026-08-09 02:51:11 +02:00
commit 722eb9b025
Signed by: alex
SSH key fingerprint: SHA256:D1+Ub8o0v4K5y1JNivW8IxEOelqLSvPmUzBbDIoZkRQ
8 changed files with 150 additions and 119 deletions

View file

@ -86,6 +86,14 @@ impl RhoConnection {
.collect()
}
pub async fn detach_user_clients(&self, user_id: i64) {
let clients = self.get_client_connections_for_user(user_id).await;
for client in clients {
client.clear_rho_connection().await;
}
self.client_connections.retain(|(id, _), _| *id != user_id as u64);
}
#[allow(unused)]
pub async fn get_app_connections(
&self,