diff options
author | Florian Dold <florian@dold.me> | 2022-10-15 16:25:44 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-15 16:25:44 +0200 |
commit | d98d49aa58d59e6d428e5d024ba3f6ea0352ae2a (patch) | |
tree | 388e9397402e985cf9bcbcc9ef458d817989b6f4 /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | a41d1ee53e1dc6af0b54f085053278e039cda8dc (diff) | |
download | wallet-core-d98d49aa58d59e6d428e5d024ba3f6ea0352ae2a.tar.xz |
wallet-core: address another DB FIXME
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 1520dfc0a..1113fb87a 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -433,7 +433,6 @@ async function processPlanchetGenerate( planchetStatus: PlanchetStatus.Pending, withdrawSig: r.withdrawSig, withdrawalGroupId: withdrawalGroup.withdrawalGroupId, - maxAge: withdrawalGroup.restrictAge ?? AgeRestriction.AGE_UNRESTRICTED, ageCommitmentProof: r.ageCommitmentProof, lastError: undefined, }; @@ -746,7 +745,7 @@ async function processPlanchetVerifyAndStoreCoin( reservePub: withdrawalGroup.reservePub, withdrawalGroupId: withdrawalGroup.withdrawalGroupId, }, - maxAge: planchet.maxAge, + maxAge: withdrawalGroup.restrictAge ?? AgeRestriction.AGE_UNRESTRICTED, ageCommitmentProof: planchet.ageCommitmentProof, spendAllocation: undefined, }; @@ -1360,7 +1359,10 @@ export async function getWithdrawalDetailsForUri( .runReadOnly(async (tx) => { const exchangeRecords = await tx.exchanges.iter().toArray(); for (const r of exchangeRecords) { - const exchangeDetails = await ws.exchangeOps.getExchangeDetails(tx, r.baseUrl); + const exchangeDetails = await ws.exchangeOps.getExchangeDetails( + tx, + r.baseUrl, + ); const denominations = await tx.denominations.indexes.byExchangeBaseUrl .iter(r.baseUrl) .toArray(); @@ -1372,7 +1374,9 @@ export async function getWithdrawalDetailsForUri( exchanges.push({ exchangeBaseUrl: exchangeDetails.exchangeBaseUrl, currency: exchangeDetails.currency, - paytoUris: exchangeDetails.wireInfo.accounts.map((x) => x.payto_uri), + paytoUris: exchangeDetails.wireInfo.accounts.map( + (x) => x.payto_uri, + ), tosStatus: getExchangeTosStatus(exchangeDetails), }); } |