style(database/bot): removing selection of status
This commit is contained in:
parent
71c1065aaa
commit
d0afd2986c
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,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>(
|
||||
"SELECT * FROM bots WHERE id = $1",
|
||||
"SELECT status, activity_type, presence FROM bots WHERE id = $1",
|
||||
)
|
||||
.bind(BOT_ID)
|
||||
.fetch_optional(db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue