Skip to content

Commit

Permalink
fix: wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Apr 22, 2024
1 parent 63df7de commit 377e73d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/update_fcm_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ pub async fn handler(
#[cfg(feature = "cloud")]
let jwt_verification_result = validate_tenant_request(

Check failure on line 42 in src/handlers/update_fcm_v1.rs

View workflow job for this annotation

GitHub Actions / [ubuntu-latest/rust-stable] Clippy all features

this function takes 3 arguments but 5 arguments were supplied
&state.registry_client,

Check failure on line 43 in src/handlers/update_fcm_v1.rs

View workflow job for this annotation

GitHub Actions / [ubuntu-latest/rust-stable] Clippy all features

no field `registry_client` on type `std::sync::Arc<state::AppState>`
&state.gotrue_client,
&state.jwt_validation_client,
&headers,
id.clone(),
None,
)
.await;

#[cfg(not(feature = "cloud"))]
let jwt_verification_result = validate_tenant_request(&state.gotrue_client, &headers);
let jwt_verification_result = validate_tenant_request(&state.jwt_validation_client, &headers);

if let Err(e) = jwt_verification_result {
error!(
Expand Down

0 comments on commit 377e73d

Please sign in to comment.