feat(database/bot): typing the bot.rs get method
This commit is contained in:
parent
cf075815d3
commit
8b0d8dd7b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue