diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/deposits.ts | 10 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/pay-merchant.ts | 25 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/pay-peer-pull-debit.ts | 14 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/pay-peer-push-debit.ts | 20 |
4 files changed, 39 insertions, 30 deletions
diff --git a/packages/taler-wallet-core/src/deposits.ts b/packages/taler-wallet-core/src/deposits.ts index 06b57fc79..e3d0b997e 100644 --- a/packages/taler-wallet-core/src/deposits.ts +++ b/packages/taler-wallet-core/src/deposits.ts @@ -989,6 +989,7 @@ async function processDepositGroupPendingDeposit( "depositGroups", "coins", "coinAvailability", + "coinHistory", "refreshGroups", "refreshSessions", "denominations", @@ -1618,14 +1619,15 @@ export async function createDepositGroup( const newTxState = await wex.db.runReadWriteTx( { storeNames: [ - "depositGroups", + "coinAvailability", + "coinHistory", "coins", - "recoupGroups", + "contractTerms", "denominations", + "depositGroups", + "recoupGroups", "refreshGroups", "refreshSessions", - "coinAvailability", - "contractTerms", ], }, async (tx) => { diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts index 37faae686..5a0decd5c 100644 --- a/packages/taler-wallet-core/src/pay-merchant.ts +++ b/packages/taler-wallet-core/src/pay-merchant.ts @@ -1181,13 +1181,14 @@ async function handleInsufficientFunds( await wex.db.runReadWriteTx( { storeNames: [ + "coinAvailability", + "coinHistory", + "coins", "contractTerms", - "exchanges", + "denominations", "exchangeDetails", + "exchanges", "purchases", - "coins", - "coinAvailability", - "denominations", "refreshGroups", "refreshSessions", ], @@ -1965,14 +1966,15 @@ export async function confirmPay( const transitionInfo = await wex.db.runReadWriteTx( { storeNames: [ - "exchanges", + "coinAvailability", + "coinHistory", + "coins", + "denominations", "exchangeDetails", + "exchanges", "purchases", - "coins", "refreshGroups", "refreshSessions", - "denominations", - "coinAvailability", ], }, async (tx) => { @@ -2269,12 +2271,13 @@ async function processPurchasePay( const transitionDone = await wex.db.runReadWriteTx( { storeNames: [ - "purchases", + "coinAvailability", + "coinHistory", "coins", + "denominations", + "purchases", "refreshGroups", "refreshSessions", - "denominations", - "coinAvailability", ], }, async (tx) => { diff --git a/packages/taler-wallet-core/src/pay-peer-pull-debit.ts b/packages/taler-wallet-core/src/pay-peer-pull-debit.ts index 42b777e38..bc154a45d 100644 --- a/packages/taler-wallet-core/src/pay-peer-pull-debit.ts +++ b/packages/taler-wallet-core/src/pay-peer-pull-debit.ts @@ -475,13 +475,14 @@ async function processPeerPullDebitPendingDeposit( const transitionDone = await wex.db.runReadWriteTx( { storeNames: [ - "exchanges", + "coinAvailability", + "coinHistory", "coins", "denominations", + "exchanges", + "peerPullDebit", "refreshGroups", "refreshSessions", - "peerPullDebit", - "coinAvailability", ], }, async (tx) => { @@ -732,13 +733,14 @@ export async function confirmPeerPullDebit( await wex.db.runReadWriteTx( { storeNames: [ - "exchanges", + "coinAvailability", + "coinHistory", "coins", "denominations", + "exchanges", + "peerPullDebit", "refreshGroups", "refreshSessions", - "peerPullDebit", - "coinAvailability", ], }, async (tx) => { diff --git a/packages/taler-wallet-core/src/pay-peer-push-debit.ts b/packages/taler-wallet-core/src/pay-peer-push-debit.ts index 6ce426bb0..92d4b98ba 100644 --- a/packages/taler-wallet-core/src/pay-peer-push-debit.ts +++ b/packages/taler-wallet-core/src/pay-peer-push-debit.ts @@ -516,14 +516,15 @@ async function processPeerPushDebitCreateReserve( const transitionDone = await wex.db.runReadWriteTx( { storeNames: [ - "exchanges", - "contractTerms", - "coins", "coinAvailability", + "coinHistory", + "coins", + "contractTerms", "denominations", + "exchanges", + "peerPushDebit", "refreshGroups", "refreshSessions", - "peerPushDebit", ], }, async (tx) => { @@ -1102,15 +1103,16 @@ export async function initiatePeerPushDebit( const res = await wex.db.runReadWriteTx( { storeNames: [ - "exchanges", - "exchangeDetails", - "contractTerms", - "coins", "coinAvailability", + "coinHistory", + "coins", + "contractTerms", "denominations", + "exchangeDetails", + "exchanges", + "peerPushDebit", "refreshGroups", "refreshSessions", - "peerPushDebit", ], }, async (tx) => { |