Skip to content

Commit

Permalink
refactor(router): removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
sahkal committed Nov 10, 2023
1 parent 3155c84 commit 46799d5
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions crates/router/src/core/payments/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3428,23 +3428,3 @@ pub fn validate_payment_link_request(
}
Ok(())
}

// #[cfg(feature = "olap")]
// pub fn validate_payment_link_list_request(
// req: &api_models::payments::PaymentLinkListConstraints,
// ) -> CustomResult<(), errors::ApiErrorResponse> {
// use common_utils::consts::PAYMENTS_LINK_LIST_LIMIT;

// utils::when(
// req.limit > PAYMENTS_LINK_LIST_LIMIT || req.limit < 1,
// || {
// Err(errors::ApiErrorResponse::InvalidRequestData {
// message: format!(
// "limit should be in between 1 and {}",
// PAYMENTS_LINK_LIST_LIMIT
// ),
// })
// },
// )?;
// Ok(())
// }

0 comments on commit 46799d5

Please sign in to comment.