fix
All checks were successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
JMARyA 2025-01-08 20:52:38 +01:00
parent 901af1c43c
commit 567981c6b5
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -48,7 +48,7 @@ impl Sessions for User {
/// Generate a new API Key session /// Generate a new API Key session
async fn api_key(&self, name: &str) -> Session { async fn api_key(&self, name: &str) -> Session {
sqlx::query_as( sqlx::query_as(
"INSERT INTO user_session (token, \"user\", kind, name) VALUES ($1, $2, $3) RETURNING *", "INSERT INTO user_session (token, \"user\", kind, name) VALUES ($1, $2, $3, $4) RETURNING *",
) )
.bind(gen_token(64)) .bind(gen_token(64))
.bind(&self.username) .bind(&self.username)