walet-core: always show refresh transactions when in an error state
This commit is contained in:
parent
12fc0b3f2a
commit
58c59a3e5e
@ -971,16 +971,25 @@ export async function getTransactions(
|
||||
transactions.push(buildTransactionForPullPaymentDebit(pi));
|
||||
});
|
||||
|
||||
if (transactionsRequest?.includeRefreshes) {
|
||||
tx.refreshGroups.iter().forEachAsync(async (rg) => {
|
||||
if (shouldSkipCurrency(transactionsRequest, rg.currency)) {
|
||||
return;
|
||||
tx.refreshGroups.iter().forEachAsync(async (rg) => {
|
||||
if (shouldSkipCurrency(transactionsRequest, rg.currency)) {
|
||||
return;
|
||||
}
|
||||
let required = false;
|
||||
const opId = RetryTags.forRefresh(rg);
|
||||
if (transactionsRequest?.includeRefreshes) {
|
||||
required = true;
|
||||
} else if (rg.operationStatus !== RefreshOperationStatus.Finished) {
|
||||
const ort = await tx.operationRetries.get(opId);
|
||||
if (ort) {
|
||||
required = true;
|
||||
}
|
||||
const opId = RetryTags.forRefresh(rg);
|
||||
}
|
||||
if (required) {
|
||||
const ort = await tx.operationRetries.get(opId);
|
||||
transactions.push(buildTransactionForRefresh(rg, ort));
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
tx.withdrawalGroups.iter().forEachAsync(async (wsr) => {
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user