From 8b0d8dd7b9af3dad7515b2ff5697f7efa094ba88 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 16 Feb 2026 22:15:40 +0100 Subject: [PATCH] feat(database/bot): typing the bot.rs get method --- src/database/bot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database/bot.rs b/src/database/bot.rs index e777a6a..5e3205a 100644 --- a/src/database/bot.rs +++ b/src/database/bot.rs @@ -12,7 +12,7 @@ pub async fn init(db: &PgPool) -> Result<(), sqlx::Error> { } pub async fn get(db: &PgPool) -> Result, sqlx::Error> { - let bot = query_as::<_, DbBot>( + let bot: Option = query_as::<_, DbBot>( "SELECT status, activity_type, presence FROM bots WHERE id = $1", ) .bind(BOT_ID)