diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-27 21:11:20 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-27 21:11:20 +0530 |
commit | 5be0708a10874be939e63ca82082cd665165823c (patch) | |
tree | d67531e204513905ffe90b7874baead3afe50305 /src/operations/pending.ts | |
parent | e404f5e6d3001906c11b82a532db518720caebfd (diff) | |
download | wallet-core-5be0708a10874be939e63ca82082cd665165823c.tar.xz |
adopt new merchant refund API
Diffstat (limited to 'src/operations/pending.ts')
-rw-r--r-- | src/operations/pending.ts | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/operations/pending.ts b/src/operations/pending.ts index 3e548a27f..a797763bf 100644 --- a/src/operations/pending.ts +++ b/src/operations/pending.ts @@ -396,26 +396,6 @@ async function gatherPurchasePending( }); } } - const numRefundsPending = Object.keys(pr.refundState.refundsPending).length; - if (numRefundsPending > 0) { - const numRefundsDone = Object.keys(pr.refundState.refundsDone).length; - resp.nextRetryDelay = updateRetryDelay( - resp.nextRetryDelay, - now, - pr.refundApplyRetryInfo.nextRetry, - ); - if (!onlyDue || pr.refundApplyRetryInfo.nextRetry.t_ms <= now.t_ms) { - resp.pendingOperations.push({ - type: PendingOperationType.RefundApply, - numRefundsDone, - numRefundsPending, - givesLifeness: true, - proposalId: pr.proposalId, - retryInfo: pr.refundApplyRetryInfo, - lastError: pr.lastRefundApplyError, - }); - } - } }); } |