diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay.ts b/packages/taler-wallet-core/src/operations/pay.ts index c57243b59..86b66e6f6 100644 --- a/packages/taler-wallet-core/src/operations/pay.ts +++ b/packages/taler-wallet-core/src/operations/pay.ts @@ -1649,8 +1649,9 @@ export async function refuseProposal( ws: InternalWalletState, proposalId: string, ): Promise<void> { - const success = await ws.db.mktx((x) => ({proposals: x.proposals})).runReadWrite( - async (tx) => { + const success = await ws.db + .mktx((x) => ({ proposals: x.proposals })) + .runReadWrite(async (tx) => { const proposal = await tx.proposals.get(proposalId); if (!proposal) { logger.trace(`proposal ${proposalId} not found, won't refuse proposal`); @@ -1662,8 +1663,7 @@ export async function refuseProposal( proposal.proposalStatus = ProposalStatus.REFUSED; await tx.proposals.put(proposal); return true; - }, - ); + }); if (success) { ws.notify({ type: NotificationType.ProposalRefused, |