diff options
Diffstat (limited to 'src/operations/history.ts')
-rw-r--r-- | src/operations/history.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/operations/history.ts b/src/operations/history.ts index 2fb7854d2..2cf215a5a 100644 --- a/src/operations/history.ts +++ b/src/operations/history.ts @@ -181,6 +181,7 @@ export async function getHistory( Stores.payEvents, Stores.refundEvents, Stores.reserveUpdatedEvents, + Stores.recoupGroups, ], async tx => { tx.iter(Stores.exchanges).forEach(exchange => { @@ -485,6 +486,16 @@ export async function getHistory( amountRefundedInvalid: Amounts.toString(amountRefundedInvalid), }); }); + + tx.iter(Stores.recoupGroups).forEach(rg => { + if (rg.timestampFinished) { + history.push({ + type: HistoryEventType.FundsRecouped, + timestamp: rg.timestampFinished, + eventId: makeEventId(HistoryEventType.FundsRecouped, rg.recoupGroupId), + }); + } + }); }, ); |