style(database/bot): removing selection of status

This commit is contained in:
Raphael 2026-02-16 15:28:56 +01:00
parent 71c1065aaa
commit d0afd2986c
No known key found for this signature in database

View file

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