Skip to content

Commit

Permalink
chore: cargo clippy_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Narayanbhat166 committed Nov 8, 2024
1 parent 76d872a commit cc54284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/router/src/routes/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2166,7 +2166,7 @@ pub async fn payment_status(
state,
&req,
internal_payload,
|state, auth: auth::AuthenticationDataV2, req, req_state| async {
|state, auth: auth::AuthenticationData, req, req_state| async {
let payment_id = req.global_payment_id;
let request = req.payload;

Expand Down
6 changes: 2 additions & 4 deletions crates/router/src/routes/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ pub async fn routing_create_config(
auth::auth_type(
&auth::HeaderAuth(auth::ApiKeyAuth),
&auth::JWTAuth {
permission: Permission::RoutingWrite,
minimum_entity_level: EntityType::Profile,
permission: Permission::ProfileRoutingWrite,
},
req.headers(),
),
Expand Down Expand Up @@ -255,8 +254,7 @@ pub async fn routing_retrieve_config(
auth::auth_type(
&auth::HeaderAuth(auth::ApiKeyAuth),
&auth::JWTAuth {
permission: Permission::RoutingRead,
minimum_entity_level: EntityType::Profile,
permission: Permission::ProfileRoutingRead,
},
req.headers(),
),
Expand Down

0 comments on commit cc54284

Please sign in to comment.