Switched from sea-orm to sqlx
This commit is contained in:
@@ -32,7 +32,7 @@ pub async fn menu_markup(
|
||||
db: &DatabaseConnection,
|
||||
) -> crate::Result<InlineKeyboardMarkup> {
|
||||
let command: String = command.into();
|
||||
let names: Vec<String> = Account::get_names(user_id, db).await?.try_collect().await?;
|
||||
let names: Vec<String> = Account::get_names(user_id, db).try_collect().await?;
|
||||
|
||||
spawn_blocking(move || menu_markup_sync(&command, names))
|
||||
.await
|
||||
|
Reference in New Issue
Block a user