Skip to content

Commit

Permalink
refactor(router): fixed func name for fetching list payment link
Browse files Browse the repository at this point in the history
  • Loading branch information
sahkal committed Nov 21, 2023
1 parent b45a902 commit 837887d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/router/src/core/payment_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ pub async fn list_payment_link(
) -> RouterResponse<Vec<api_models::payments::RetrievePaymentLinkResponse>> {
let db = state.store.as_ref();
let payment_link = db
.find_payment_link_list_by_merchant_id(&merchant.merchant_id, constraints)
.find_list_payment_link_by_merchant_id(&merchant.merchant_id, constraints)
.await
.change_context(errors::ApiErrorResponse::InternalServerError)
.attach_printable("Unable to retrieve payment link")?;
Expand Down
6 changes: 3 additions & 3 deletions crates/router/src/db/payment_link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub trait PaymentLinkInterface {
_payment_link: storage::PaymentLinkNew,
) -> CustomResult<storage::PaymentLink, errors::StorageError>;

async fn find_payment_link_list_by_merchant_id(
async fn find_list_payment_link_by_merchant_id(
&self,
merchant_id: &str,
payment_link_constraints: api_models::payments::PaymentLinkListConstraints,
Expand Down Expand Up @@ -52,7 +52,7 @@ impl PaymentLinkInterface for Store {
.into_report()
}

async fn find_payment_link_list_by_merchant_id(
async fn find_list_payment_link_by_merchant_id(
&self,
merchant_id: &str,
payment_link_constraints: api_models::payments::PaymentLinkListConstraints,
Expand Down Expand Up @@ -83,7 +83,7 @@ impl PaymentLinkInterface for MockDb {
Err(errors::StorageError::MockDbError)?
}

async fn find_payment_link_list_by_merchant_id(
async fn find_list_payment_link_by_merchant_id(
&self,
_merchant_id: &str,
_payment_link_constraints: api_models::payments::PaymentLinkListConstraints,
Expand Down

0 comments on commit 837887d

Please sign in to comment.