diff --git a/src/helpers/account_helper.rs b/src/helpers/account_helper.rs index 477f7f5..ba7d9bc 100644 --- a/src/helpers/account_helper.rs +++ b/src/helpers/account_helper.rs @@ -321,7 +321,7 @@ pub fn export(user_id: &UserID) -> ResultBoxError { /// Delete a user's account pub fn delete(user_id: &UserID) -> ResultBoxError { // Close all WebSockets of user - user_ws_controller::disconnect_user_from_all_sockets(user_id)?; + destroy_all_user_tokens(user_id)?; // Delete all group membership groups_helper::delete_all_user_groups(user_id)?;