From 3d2b7b2a65787858c9471bc48cc5860c07b7f7dc Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 9 Jun 2021 15:26:18 +0200 Subject: formatting: re-run prettier --- packages/taler-wallet-core/src/operations/pay.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/pay.ts') 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 { - 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, -- cgit v1.2.3