diff options
author | Florian Dold <florian@dold.me> | 2022-10-08 23:45:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-10-08 23:45:49 +0200 |
commit | 8ac5080607d28f8dcd84a949221a551a3f66cea8 (patch) | |
tree | 2aadd0952be1aa2dcc1cddab5de1f9218941c643 /packages/taler-wallet-core/src/operations/backup/export.ts | |
parent | 3897bd4f018bf23ab485325d48a259958653ff52 (diff) | |
download | wallet-core-8ac5080607d28f8dcd84a949221a551a3f66cea8.tar.xz |
wallet-core: more DB and refund fixes
Diffstat (limited to 'packages/taler-wallet-core/src/operations/backup/export.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/backup/export.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/taler-wallet-core/src/operations/backup/export.ts b/packages/taler-wallet-core/src/operations/backup/export.ts index 04fac7d38..d16b344f6 100644 --- a/packages/taler-wallet-core/src/operations/backup/export.ts +++ b/packages/taler-wallet-core/src/operations/backup/export.ts @@ -65,7 +65,7 @@ import { CoinSourceType, CoinStatus, DenominationRecord, - ProposalStatus, + PurchaseStatus, RefreshCoinStatus, RefundState, WALLET_BACKUP_STATE_KEY, @@ -382,21 +382,21 @@ export async function exportBackup( } let propStatus: BackupProposalStatus; - switch (purch.status) { - case ProposalStatus.Paid: + switch (purch.purchaseStatus) { + case PurchaseStatus.Paid: propStatus = BackupProposalStatus.Paid; return; - case ProposalStatus.DownloadingProposal: - case ProposalStatus.Proposed: + case PurchaseStatus.DownloadingProposal: + case PurchaseStatus.Proposed: propStatus = BackupProposalStatus.Proposed; break; - case ProposalStatus.ProposalDownloadFailed: + case PurchaseStatus.ProposalDownloadFailed: propStatus = BackupProposalStatus.PermanentlyFailed; break; - case ProposalStatus.ProposalRefused: + case PurchaseStatus.ProposalRefused: propStatus = BackupProposalStatus.Refused; break; - case ProposalStatus.RepurchaseDetected: + case PurchaseStatus.RepurchaseDetected: propStatus = BackupProposalStatus.Repurchase; break; default: |