diff options
author | Florian Dold <florian@dold.me> | 2021-05-12 13:34:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-05-12 13:35:04 +0200 |
commit | debc2254fdf1cf748a846e429e32c2e92d557080 (patch) | |
tree | 2387fbb74977b5c58786332703c8d61189214c00 /packages/taler-wallet-core/src/operations/backup/import.ts | |
parent | 83b02069c931306c72c470e0285693719f65d0ca (diff) | |
download | wallet-core-debc2254fdf1cf748a846e429e32c2e92d557080.tar.xz |
towards backup based on add/remove set instead of clocks
Diffstat (limited to 'packages/taler-wallet-core/src/operations/backup/import.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/backup/import.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/backup/import.ts b/packages/taler-wallet-core/src/operations/backup/import.ts index e0ae379ab..931e6f92b 100644 --- a/packages/taler-wallet-core/src/operations/backup/import.ts +++ b/packages/taler-wallet-core/src/operations/backup/import.ts @@ -302,7 +302,9 @@ export async function importBackup( denomPubHash, ]); if (!existingDenom) { - logger.info(`importing backup denomination: ${j2s(backupDenomination)}`); + logger.info( + `importing backup denomination: ${j2s(backupDenomination)}`, + ); await tx.put(Stores.denominations, { denomPub: backupDenomination.denom_pub, @@ -446,6 +448,7 @@ export async function importBackup( timestampStart: backupWg.timestamp_created, timestampFinish: backupWg.timestamp_finish, withdrawalGroupId: backupWg.withdrawal_group_id, + denomSelUid: backupWg.selected_denoms_id, }); } } @@ -695,6 +698,7 @@ export async function importBackup( coinDepositPermissions: undefined, totalPayCost: Amounts.parseOrThrow(backupPurchase.total_pay_cost), refunds, + payCoinSelectionUid: backupPurchase.pay_coins_uid, }); } } @@ -801,6 +805,7 @@ export async function importBackup( tipAmountRaw: Amounts.parseOrThrow(backupTip.tip_amount_raw), tipExpiration: backupTip.timestamp_expiration, walletTipId: backupTip.wallet_tip_id, + denomSelUid: backupTip.selected_denoms_uid, }); } } |