Updated account entity for better readability, now Account::get_names always orders by name
This commit is contained in:
@ -12,7 +12,7 @@ pub async fn get_accounts(
|
||||
db: DatabaseConnection,
|
||||
) -> crate::Result<()> {
|
||||
let user_id = msg.from().ok_or(NoUserInfo)?.id.0;
|
||||
let mut account_names = Account::get_names(user_id, &db, true).await?;
|
||||
let mut account_names = Account::get_names(user_id, &db).await?;
|
||||
let mut text = match account_names.try_next().await? {
|
||||
Some(name) => format!("Accounts:\n`{name}`"),
|
||||
None => {
|
||||
|
Reference in New Issue
Block a user