summaryrefslogtreecommitdiff
path: root/src/operations/pending.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-15 19:04:14 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-15 19:04:14 +0100
commit857c0ab4cd2253a0e1d53e3372a1ff1565cb4150 (patch)
tree1284cef3d992ce767baee0a4788214b7f474a3ba /src/operations/pending.ts
parent7cc3b10824683c601a9051ef98e7c1478a801db8 (diff)
downloadwallet-core-857c0ab4cd2253a0e1d53e3372a1ff1565cb4150.tar.gz
wallet-core-857c0ab4cd2253a0e1d53e3372a1ff1565cb4150.tar.bz2
wallet-core-857c0ab4cd2253a0e1d53e3372a1ff1565cb4150.zip
introduce refund groups, react correctly to 410 Gone for /refund
Diffstat (limited to 'src/operations/pending.ts')
-rw-r--r--src/operations/pending.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operations/pending.ts b/src/operations/pending.ts
index 27892df06..f0b29792d 100644
--- a/src/operations/pending.ts
+++ b/src/operations/pending.ts
@@ -365,9 +365,9 @@ async function gatherPurchasePending(
});
}
}
- const numRefundsPending = Object.keys(pr.refundsPending).length;
+ const numRefundsPending = Object.keys(pr.refundState.refundsPending).length;
if (numRefundsPending > 0) {
- const numRefundsDone = Object.keys(pr.refundsDone).length;
+ const numRefundsDone = Object.keys(pr.refundState.refundsDone).length;
resp.nextRetryDelay = updateRetryDelay(
resp.nextRetryDelay,
now,