Skip to content

Commit

Permalink
refactor(api_lock): allow api lock on psync only when force sync is t…
Browse files Browse the repository at this point in the history
…rue (#3242)
  • Loading branch information
Narayanbhat166 authored Jan 8, 2024
1 parent f78d02d commit ac5349c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/router/src/routes/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ impl GetLockingInput for payment_types::PaymentsRetrieveRequest {
lock_utils::ApiIdentifier: From<F>,
{
match self.resource_id {
payment_types::PaymentIdType::PaymentIntentId(ref id) => {
payment_types::PaymentIdType::PaymentIntentId(ref id) if self.force_sync => {
api_locking::LockAction::Hold {
input: api_locking::LockingInput {
unique_locking_key: id.to_owned(),
Expand Down

0 comments on commit ac5349c

Please sign in to comment.