feat(database/bot): typing the bot.rs get method

This commit is contained in:
Raphael 2026-02-16 22:15:40 +01:00
parent cf075815d3
commit 8b0d8dd7b9
No known key found for this signature in database

View file

@ -12,7 +12,7 @@ pub async fn init(db: &PgPool) -> Result<(), sqlx::Error> {
}
pub async fn get(db: &PgPool) -> Result<Option<DbBot>, sqlx::Error> {
let bot = query_as::<_, DbBot>(
let bot: Option<DbBot> = query_as::<_, DbBot>(
"SELECT status, activity_type, presence FROM bots WHERE id = $1",
)
.bind(BOT_ID)