Updated account entity for better readability, now Account::get_names always orders by name

This commit is contained in:
2023-06-12 17:55:21 +03:00
parent 7ece22c081
commit ef27285e96
3 changed files with 11 additions and 15 deletions

View File

@@ -9,7 +9,7 @@ pub async fn account_markup(
user_id: u64,
db: &DatabaseConnection,
) -> crate::Result<KeyboardMarkup> {
let account_names: Vec<Vec<KeyboardButton>> = Account::get_names(user_id, db, true)
let account_names: Vec<Vec<KeyboardButton>> = Account::get_names(user_id, db)
.await?
.map_ok(KeyboardButton::new)
.try_chunks(3)