diff options
author | Sebastian <sebasjm@gmail.com> | 2021-11-24 08:55:37 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-11-24 08:58:48 -0300 |
commit | f07436aa4910114a514235fb17879411dae0a555 (patch) | |
tree | 83e1dd651ca895882b74aa6bb1d5f188a3415e4d /packages/taler-wallet-core/src/operations/exchanges.ts | |
parent | b3b3c21acba0cda261d339572de02aff0e704b59 (diff) | |
download | wallet-core-f07436aa4910114a514235fb17879411dae0a555.tar.xz |
new exchange-added notifiaction and including tos information in the wxApi.listExchange api
Diffstat (limited to 'packages/taler-wallet-core/src/operations/exchanges.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/exchanges.ts | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts index 638af813a..a10378a8c 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -494,11 +494,11 @@ async function updateExchangeFromUrlImpl( tosFound !== undefined ? tosFound : await downloadExchangeWithTermsOfService( - baseUrl, - ws.http, - timeout, - "text/plain", - ); + baseUrl, + ws.http, + timeout, + "text/plain", + ); let recoupGroupId: string | undefined = undefined; @@ -657,6 +657,9 @@ async function updateExchangeFromUrlImpl( logger.trace("done updating exchange info in database"); + ws.notify({ + type: NotificationType.ExchangeAdded, + }); return { exchange: updated.exchange, exchangeDetails: updated.exchangeDetails, |