refactor(api_lock): allow api lock on psync only when force sync is true (#3242)

This commit is contained in:
Narayan Bhat
2024-01-08 16:11:37 +05:30
committed by GitHub
parent f78d02d981
commit ac5349cd71

View File

@ -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(),