From 6973045ba08824fc3ed10f289addc25c847a11c3 Mon Sep 17 00:00:00 2001 From: Anurag Thakur Date: Tue, 15 Oct 2024 13:03:42 +0530 Subject: [PATCH] Fixed variable name Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com> --- crates/router/src/services/authentication.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/router/src/services/authentication.rs b/crates/router/src/services/authentication.rs index 15355e7db08..63e1e1c23a8 100644 --- a/crates/router/src/services/authentication.rs +++ b/crates/router/src/services/authentication.rs @@ -823,8 +823,8 @@ impl<'a> HeaderMapStruct<'a> { pub fn get_organization_id_from_header(&self) -> RouterResult { self.get_mandatory_header_value_by_key(headers::X_ORGANIZATION_ID.into()) .map(|val| val.to_owned()) - .and_then(|merchant_id| { - id_type::OrganizationId::wrap(merchant_id).change_context( + .and_then(|organization_id| { + id_type::OrganizationId::wrap(organization_id).change_context( errors::ApiErrorResponse::InvalidRequestData { message: format!("`{}` header is invalid", headers::X_ORGANIZATION_ID), },