mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-24 16:01:42 +00:00
correct query param number in delete_token (#380)
This commit is contained in:
+1190
-1190
File diff suppressed because it is too large
Load Diff
@@ -1425,8 +1425,10 @@ async fn delete_token(
|
||||
error::Error::BadRequest(format!("Only users with email can create tokens"))
|
||||
})?;
|
||||
let tokens_deleted: Vec<String> = sqlx::query_scalar(
|
||||
"DELETE FROM token WHERE email = $1 AND
|
||||
token LIKE concat($3, '%') RETURNING concat(substring(token for 10), '*****')",
|
||||
"DELETE FROM token
|
||||
WHERE email = $1
|
||||
AND token LIKE concat($2::text, '%')
|
||||
RETURNING concat(substring(token for 10), '*****')",
|
||||
)
|
||||
.bind(&email)
|
||||
.bind(&token_prefix)
|
||||
|
||||
Reference in New Issue
Block a user