From cc542845c7b66328b421c8cc38f0330cba82d36d Mon Sep 17 00:00:00 2001 From: Narayan Bhat Date: Fri, 8 Nov 2024 15:44:58 +0530 Subject: [PATCH] chore: cargo clippy_v2 --- crates/router/src/routes/payments.rs | 2 +- crates/router/src/routes/routing.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/router/src/routes/payments.rs b/crates/router/src/routes/payments.rs index 1aafc4f13b57..14bd5edab097 100644 --- a/crates/router/src/routes/payments.rs +++ b/crates/router/src/routes/payments.rs @@ -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; diff --git a/crates/router/src/routes/routing.rs b/crates/router/src/routes/routing.rs index 29c759425566..f0269bd029ab 100644 --- a/crates/router/src/routes/routing.rs +++ b/crates/router/src/routes/routing.rs @@ -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(), ), @@ -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(), ),