Skip to content

Commit

Permalink
fix(core): [payouts] failure of payout retrieve when token is expired (
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakilmostak authored Jul 18, 2024
1 parent 7f582e4 commit 817d06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/core/payouts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2373,8 +2373,7 @@ pub async fn make_payout_data(
validate_and_get_business_profile(state, &profile_id, merchant_id).await?;
let payout_method_data = match req {
payouts::PayoutRequest::PayoutCreateRequest(r) => r.payout_method_data.to_owned(),
payouts::PayoutRequest::PayoutRetrieveRequest(_)
| payouts::PayoutRequest::PayoutActionRequest(_) => {
payouts::PayoutRequest::PayoutActionRequest(_) => {
match payout_attempt.payout_token.to_owned() {
Some(payout_token) => {
let customer_id = customer_details
Expand All @@ -2397,6 +2396,7 @@ pub async fn make_payout_data(
None => None,
}
}
payouts::PayoutRequest::PayoutRetrieveRequest(_) => None,
};

let payout_link = payouts
Expand Down

0 comments on commit 817d06c

Please sign in to comment.