diff options
author | Florian Dold <florian@dold.me> | 2021-06-09 15:26:18 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-06-09 15:26:18 +0200 |
commit | 3d2b7b2a65787858c9471bc48cc5860c07b7f7dc (patch) | |
tree | 4a7477c184de7408104b8bf254a277a5949b19de /packages/taler-wallet-core/src/operations/pay.ts | |
parent | 5c26461247040c07c86291babf0c87631df638b5 (diff) | |
download | wallet-core-3d2b7b2a65787858c9471bc48cc5860c07b7f7dc.tar.xz |
formatting: re-run prettier
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, |