taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 7c35e9cc4b0791e98da14327620cf884bf970248
parent 4098ec2565f57055f57407f1d9a8872d7823e553
Author: Florian Dold <florian@dold.me>
Date:   Fri, 14 Nov 2025 19:54:08 +0100

-fix nested transaction

Diffstat:
Mpackages/taler-wallet-core/src/pay-merchant.ts | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts @@ -1796,12 +1796,7 @@ async function lookupProposalOrRepurchase( const existingProposalId = purchaseRec.repurchaseProposalId; if (existingProposalId) { logger.trace("using existing purchase for same product"); - const oldProposal = await wex.db.runReadOnlyTx( - { storeNames: ["purchases"] }, - async (tx) => { - return tx.purchases.get(existingProposalId); - }, - ); + const oldProposal = await tx.purchases.get(existingProposalId); if (oldProposal) { purchaseRec = oldProposal; }