From 14f3d1e06dda003d457f2b3531e197011a284244 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 9 Jan 2023 08:33:41 -0300 Subject: wallet-core pretty --- packages/taler-wallet-core/src/operations/backup/import.ts | 4 +++- packages/taler-wallet-core/src/operations/common.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-core/src/operations') diff --git a/packages/taler-wallet-core/src/operations/backup/import.ts b/packages/taler-wallet-core/src/operations/backup/import.ts index 805b0c6d3..c7afaea8e 100644 --- a/packages/taler-wallet-core/src/operations/backup/import.ts +++ b/packages/taler-wallet-core/src/operations/backup/import.ts @@ -778,7 +778,9 @@ export async function importBackup( timestampFinished: backupRefreshGroup.timestamp_finish, timestampCreated: backupRefreshGroup.timestamp_created, refreshGroupId: backupRefreshGroup.refresh_group_id, - currency: Amounts.currencyOf(backupRefreshGroup.old_coins[0].input_amount), + currency: Amounts.currencyOf( + backupRefreshGroup.old_coins[0].input_amount, + ), reason, lastErrorPerCoin: {}, oldCoinPubs: backupRefreshGroup.old_coins.map((x) => x.coin_pub), diff --git a/packages/taler-wallet-core/src/operations/common.ts b/packages/taler-wallet-core/src/operations/common.ts index cb22105e1..96009eb0b 100644 --- a/packages/taler-wallet-core/src/operations/common.ts +++ b/packages/taler-wallet-core/src/operations/common.ts @@ -175,7 +175,7 @@ export async function spendCoins( await tx.coins.put(coin); await tx.coinAvailability.put(coinAvailability); } - + await ws.refreshOps.createRefreshGroup( ws, tx, -- cgit v1.2.3