From ef0acf06bfb7820a21c4719dba0d659f600be3c7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 2 Apr 2020 20:33:01 +0530 Subject: model reserve history in the exchange, improve reserve handling logic --- src/operations/pending.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/operations/pending.ts') diff --git a/src/operations/pending.ts b/src/operations/pending.ts index adf47b151..b0bb9a7c3 100644 --- a/src/operations/pending.ts +++ b/src/operations/pending.ts @@ -243,7 +243,7 @@ async function gatherWithdrawalPending( resp: PendingOperationsResponse, onlyDue: boolean = false, ): Promise { - await tx.iter(Stores.withdrawalSession).forEach((wsr) => { + await tx.iter(Stores.withdrawalGroups).forEach((wsr) => { if (wsr.timestampFinish) { return; } @@ -266,7 +266,8 @@ async function gatherWithdrawalPending( numCoinsTotal, numCoinsWithdrawn, source: wsr.source, - withdrawSessionId: wsr.withdrawSessionId, + withdrawalGroupId: wsr.withdrawalGroupId, + lastError: wsr.lastError, }); }); } @@ -444,7 +445,7 @@ export async function getPendingOperations( Stores.reserves, Stores.refreshGroups, Stores.coins, - Stores.withdrawalSession, + Stores.withdrawalGroups, Stores.proposals, Stores.tips, Stores.purchases, -- cgit v1.2.3