Skip to content

Commit

Permalink
fix: merchant_connector_id null in KV flow (#2810)
Browse files Browse the repository at this point in the history
Co-authored-by: preetamrevankar <132073736+preetamrevankar@users.noreply.github.com>
  • Loading branch information
dracarys18 and preetamrevankar authored Nov 21, 2023
1 parent be4aa3b commit e566a4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/diesel_models/src/payment_attempt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ impl PaymentAttemptUpdate {
.amount_capturable
.unwrap_or(source.amount_capturable),
updated_by: pa_update.updated_by,
merchant_connector_id: pa_update.merchant_connector_id,
merchant_connector_id: pa_update
.merchant_connector_id
.or(source.merchant_connector_id),
authentication_data: pa_update.authentication_data.or(source.authentication_data),
encoded_data: pa_update.encoded_data.or(source.encoded_data),
unified_code: pa_update.unified_code.unwrap_or(source.unified_code),
Expand Down

0 comments on commit e566a4e

Please sign in to comment.