Skip to content

Commit

Permalink
Fixed variable name
Browse files Browse the repository at this point in the history
Co-authored-by: Narayan Bhat <[email protected]>
  • Loading branch information
AnuthaDev and Narayanbhat166 authored Oct 15, 2024
1 parent a0b954b commit 6973045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/services/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -823,8 +823,8 @@ impl<'a> HeaderMapStruct<'a> {
pub fn get_organization_id_from_header(&self) -> RouterResult<id_type::OrganizationId> {
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),
},
Expand Down

0 comments on commit 6973045

Please sign in to comment.