Misc #35

Merged
oysteikt merged 13 commits from misc into main 2024-08-07 17:29:15 +02:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit e1f89b7b72 - Show all commits

View File

@ -156,9 +156,9 @@ async fn show(args: ShowArgs, connection: &mut MySqlConnection) -> anyhow::Resul
let mut result = Vec::with_capacity(filtered_usernames.len()); let mut result = Vec::with_capacity(filtered_usernames.len());
for username in filtered_usernames.iter() { for username in filtered_usernames.iter() {
// TODO: fetch all users in one query // TODO: fetch all users in one query
get_database_user_for_user(username, connection) if let Some(user) = get_database_user_for_user(username, connection).await? {
.await? result.push(user)
.map(|user| result.push(user)); }
} }
result result
}; };