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));
|
transactions.push(buildTransactionForPullPaymentDebit(pi));
|
||||||
});
|
});
|
||||||
|
|
||||||
if (transactionsRequest?.includeRefreshes) {
|
tx.refreshGroups.iter().forEachAsync(async (rg) => {
|
||||||
tx.refreshGroups.iter().forEachAsync(async (rg) => {
|
if (shouldSkipCurrency(transactionsRequest, rg.currency)) {
|
||||||
if (shouldSkipCurrency(transactionsRequest, rg.currency)) {
|
return;
|
||||||
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);
|
const ort = await tx.operationRetries.get(opId);
|
||||||
transactions.push(buildTransactionForRefresh(rg, ort));
|
transactions.push(buildTransactionForRefresh(rg, ort));
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
tx.withdrawalGroups.iter().forEachAsync(async (wsr) => {
|
tx.withdrawalGroups.iter().forEachAsync(async (wsr) => {
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user