mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 02:57:02 +08:00
refactor(api_lock): allow api lock on psync only when force sync is true (#3242)
This commit is contained in:
@ -1271,7 +1271,7 @@ impl GetLockingInput for payment_types::PaymentsRetrieveRequest {
|
|||||||
lock_utils::ApiIdentifier: From<F>,
|
lock_utils::ApiIdentifier: From<F>,
|
||||||
{
|
{
|
||||||
match self.resource_id {
|
match self.resource_id {
|
||||||
payment_types::PaymentIdType::PaymentIntentId(ref id) => {
|
payment_types::PaymentIdType::PaymentIntentId(ref id) if self.force_sync => {
|
||||||
api_locking::LockAction::Hold {
|
api_locking::LockAction::Hold {
|
||||||
input: api_locking::LockingInput {
|
input: api_locking::LockingInput {
|
||||||
unique_locking_key: id.to_owned(),
|
unique_locking_key: id.to_owned(),
|
||||||
|
|||||||
Reference in New Issue
Block a user