summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-01 19:07:14 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-01 19:07:14 +0530
commitbb369f2e2ab7838751ce9aae2e23622be1391586 (patch)
tree3fca0a5d7047b1f38ec230657e0c8f0c0cc891e0 /packages/taler-wallet-core/src/operations
parent8c33e05bf08976403719a17b1faf424109a7eaa5 (diff)
downloadwallet-core-bb369f2e2ab7838751ce9aae2e23622be1391586.tar.gz
wallet-core-bb369f2e2ab7838751ce9aae2e23622be1391586.tar.bz2
wallet-core-bb369f2e2ab7838751ce9aae2e23622be1391586.zip
auto-format
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r--packages/taler-wallet-core/src/operations/refund.ts7
-rw-r--r--packages/taler-wallet-core/src/operations/state.ts2
-rw-r--r--packages/taler-wallet-core/src/operations/testing.ts11
-rw-r--r--packages/taler-wallet-core/src/operations/transactions.ts2
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts6
5 files changed, 22 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/operations/refund.ts b/packages/taler-wallet-core/src/operations/refund.ts
index 2c7427c03..787d2bb4c 100644
--- a/packages/taler-wallet-core/src/operations/refund.ts
+++ b/packages/taler-wallet-core/src/operations/refund.ts
@@ -260,7 +260,12 @@ async function acceptRefunds(
const refreshCoinsPubs = Object.values(refreshCoinsMap);
if (refreshCoinsPubs.length > 0) {
- await createRefreshGroup(ws, tx, refreshCoinsPubs, RefreshReason.Refund);
+ await createRefreshGroup(
+ ws,
+ tx,
+ refreshCoinsPubs,
+ RefreshReason.Refund,
+ );
}
// Are we done with querying yet, or do we need to do another round
diff --git a/packages/taler-wallet-core/src/operations/state.ts b/packages/taler-wallet-core/src/operations/state.ts
index 131e9083d..c4d5b38f1 100644
--- a/packages/taler-wallet-core/src/operations/state.ts
+++ b/packages/taler-wallet-core/src/operations/state.ts
@@ -82,7 +82,7 @@ export class InternalWalletState {
*/
async runSequentialized<T>(tokens: string[], f: () => Promise<T>) {
// Make sure locks are always acquired in the same order
- tokens = [... tokens].sort();
+ tokens = [...tokens].sort();
for (const token of tokens) {
if (this.resourceLocks.has(token)) {
diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts
index f1b2d98ff..0a83773ab 100644
--- a/packages/taler-wallet-core/src/operations/testing.ts
+++ b/packages/taler-wallet-core/src/operations/testing.ts
@@ -33,7 +33,11 @@ import { Wallet } from "../wallet";
import { Amounts } from "../util/amounts";
import { NodeHttpLib } from "../headless/NodeHttpLib";
import { getDefaultNodeWallet } from "../headless/helpers";
-import { TestPayArgs, PreparePayResultType, IntegrationTestArgs } from "../types/walletTypes";
+import {
+ TestPayArgs,
+ PreparePayResultType,
+ IntegrationTestArgs,
+} from "../types/walletTypes";
const logger = new Logger("operations/testing.ts");
@@ -410,7 +414,10 @@ export async function testPay(
args: TestPayArgs,
) {
logger.trace("creating order");
- const merchant = { apikey: args.merchantApiKey, baseUrl: args.merchantBaseUrl };
+ const merchant = {
+ apikey: args.merchantApiKey,
+ baseUrl: args.merchantBaseUrl,
+ };
const orderResp = await createOrder(
http,
merchant,
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts
index 3115b9506..cc569fd24 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -165,7 +165,7 @@ export async function getTransactions(
TransactionType.Withdrawal,
wsr.withdrawalGroupId,
),
- ...(wsr.lastError ? { error: wsr.lastError} : {}),
+ ...(wsr.lastError ? { error: wsr.lastError } : {}),
});
}
break;
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index 2ab1ea52d..c68f1521f 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -48,7 +48,11 @@ import { updateExchangeFromUrl, getExchangeTrust } from "./exchanges";
import { WALLET_EXCHANGE_PROTOCOL_VERSION } from "./versions";
import * as LibtoolVersion from "../util/libtoolVersion";
-import { guardOperationException, makeErrorDetails, OperationFailedError } from "./errors";
+import {
+ guardOperationException,
+ makeErrorDetails,
+ OperationFailedError,
+} from "./errors";
import { NotificationType } from "../types/notifications";
import {
getTimestampNow,