Renamed DatabaseConnection into Pool

This commit is contained in:
2024-02-03 16:23:39 +03:00
parent bd10acb438
commit e8f0fcd819
27 changed files with 37 additions and 65 deletions

View File

@@ -29,7 +29,7 @@ pub fn menu_markup_sync(
pub async fn menu_markup(
command: impl Into<String> + Send,
user_id: u64,
db: &DatabaseConnection,
db: &Pool,
) -> crate::Result<InlineKeyboardMarkup> {
let command: String = command.into();
let names: Vec<String> = Account::get_names(user_id, db).try_collect().await?;