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

@@ -2,7 +2,7 @@ use crate::prelude::*;
use tokio::task::spawn_blocking;
#[inline]
pub async fn menu(bot: Throttle<Bot>, msg: Message, db: DatabaseConnection) -> crate::Result<()> {
pub async fn menu(bot: Throttle<Bot>, msg: Message, db: Pool) -> crate::Result<()> {
let user_id = msg.from().ok_or(NoUserInfo)?.id.0;
let names: Vec<String> = Account::get_names(user_id, &db).try_collect().await?;