mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 02:00:09 +00:00
fixup! cargo fmt
This commit is contained in:
parent
be218c89cc
commit
3b2c1332c2
10 changed files with 99 additions and 72 deletions
|
|
@ -22,10 +22,10 @@ struct LegacyTokenDbResponse {
|
|||
}
|
||||
|
||||
pub async fn app_token_auth(
|
||||
pool: &sqlx::postgres::PgPool,
|
||||
token: &str,
|
||||
pool: &sqlx::postgres::PgPool,
|
||||
token: &str,
|
||||
) -> anyhow::Result<Option<Uuid>> {
|
||||
let mut app: Vec<AppTokenDbResponse> =
|
||||
let mut app: Vec<AppTokenDbResponse> =
|
||||
sqlx::query_as("select id from external_apps where api_rl_token = $1")
|
||||
.bind(token)
|
||||
.fetch_all(pool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue