From effa7a00e91457722eb06bed1a640b30b06ddb5c Mon Sep 17 00:00:00 2001 From: Rachit Naithani <81706961+racnan@users.noreply.github.com> Date: Fri, 17 Feb 2023 15:03:54 +0530 Subject: [PATCH] bugfix(router): api keys path params (#609) --- crates/router/src/routes/api_keys.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/router/src/routes/api_keys.rs b/crates/router/src/routes/api_keys.rs index 47dd2273ab..6c7147da7e 100644 --- a/crates/router/src/routes/api_keys.rs +++ b/crates/router/src/routes/api_keys.rs @@ -65,7 +65,7 @@ pub async fn api_key_retrieve( req: HttpRequest, path: web::Path<(String, String)>, ) -> impl Responder { - let (key_id, _merchant_id) = path.into_inner(); + let (_merchant_id, key_id) = path.into_inner(); api::server_wrap( state.get_ref(), @@ -99,7 +99,7 @@ pub async fn api_key_update( path: web::Path<(String, String)>, json_payload: web::Json, ) -> impl Responder { - let (key_id, _merchant_id) = path.into_inner(); + let (_merchant_id, key_id) = path.into_inner(); let payload = json_payload.into_inner(); api::server_wrap( @@ -133,7 +133,7 @@ pub async fn api_key_revoke( req: HttpRequest, path: web::Path<(String, String)>, ) -> impl Responder { - let (key_id, _merchant_id) = path.into_inner(); + let (_merchant_id, key_id) = path.into_inner(); api::server_wrap( state.get_ref(),