diff options
author | Florian Dold <florian@dold.me> | 2023-05-25 11:52:20 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-05-25 11:52:20 +0200 |
commit | c3ef842df0ca80c5fe8deb5dabea44d5c817d7ed (patch) | |
tree | 37942171cf5a4f2f0518ba5955b258eb155efa68 /packages/taler-wallet-core/src/operations/transactions.ts | |
parent | 5f325aa4d33b4f33a2afd7d7f8aa33807c521017 (diff) | |
download | wallet-core-c3ef842df0ca80c5fe8deb5dabea44d5c817d7ed.tar.xz |
wallet-core: add pay-merchant suspended states
Diffstat (limited to 'packages/taler-wallet-core/src/operations/transactions.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index e11b628db..2eb8b202d 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -76,6 +76,7 @@ import { import { computeDepositTransactionStatus, processDepositGroup, + resumeDepositGroup, suspendDepositGroup, } from "./deposits.js"; import { getExchangeDetails } from "./exchanges.js"; @@ -1429,6 +1430,9 @@ export async function resumeTransaction( throw Error("invalid transaction ID"); } switch (tx.tag) { + case TransactionType.Deposit: + await resumeDepositGroup(ws, tx.depositGroupId); + return; default: logger.warn(`unable to resume transaction of type '${tx.tag}'`); } |