Skip to content

Commit

Permalink
fix: remove unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
i007c committed Apr 17, 2024
1 parent ee3fc8f commit 8b6d0c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/src/api/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ pub struct LoginTelQuery {
type Response<T> = Result<T, error::Error>;

#[get("/login-telegram/")]
async fn login_telegram(
q: Query<LoginTelQuery>, state: Data<AppState>,
) -> Response<String> {
async fn login_telegram(q: Query<LoginTelQuery>) -> Response<String> {
let msg = format!(
"auth_date={}\nfirst_name={}\nid={}\nphoto_url={}\nusername={}",
q.auth_date, q.first_name, q.id, q.photo_url, q.username,
Expand Down

0 comments on commit 8b6d0c6

Please sign in to comment.