diff options
author | Sebastian <sebasjm@gmail.com> | 2022-09-16 11:06:55 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-09-16 11:13:09 -0300 |
commit | 5d0837913901a2947c66209d64855b324824757d (patch) | |
tree | bff68e1fff6f5833948505849d58f4be4a5e62d1 /packages/taler-wallet-core/src/operations/deposits.ts | |
parent | a66b636dee2ed531bb5119feced80d6569d99176 (diff) | |
download | wallet-core-5d0837913901a2947c66209d64855b324824757d.tar.xz |
working on #7357
getTransactionById is introduced:
with that we move all transaction information building into a function
transactionId was added in every response that creates a tx
Diffstat (limited to 'packages/taler-wallet-core/src/operations/deposits.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/deposits.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/deposits.ts b/packages/taler-wallet-core/src/operations/deposits.ts index 612de8240..e6f1591ee 100644 --- a/packages/taler-wallet-core/src/operations/deposits.ts +++ b/packages/taler-wallet-core/src/operations/deposits.ts @@ -41,6 +41,7 @@ import { TalerProtocolTimestamp, TrackDepositGroupRequest, TrackDepositGroupResponse, + TransactionType, URL, } from "@gnu-taler/taler-util"; import { @@ -62,6 +63,7 @@ import { getTotalPaymentCost, } from "./pay.js"; import { getTotalRefreshCost } from "./refresh.js"; +import { makeEventId } from "./transactions.js"; /** * Logger. @@ -531,7 +533,10 @@ export async function createDepositGroup( await tx.depositGroups.put(depositGroup); }); - return { depositGroupId }; + return { + depositGroupId: depositGroupId, + transactionId: makeEventId(TransactionType.Deposit, depositGroupId) + }; } /** |