diff options
author | Florian Dold <florian@dold.me> | 2024-01-29 21:58:35 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-29 21:58:39 +0100 |
commit | 2c9c3d4cdf3f59eabbb47327f78966b781d77256 (patch) | |
tree | 17d36c45e67bd12e0beaaf4d5524423419ac2836 /packages/taler-wallet-core/src/operations/refresh.ts | |
parent | 7b83d8f8dd220e04a26b33b03afc5f989cc5d1fb (diff) | |
download | wallet-core-2c9c3d4cdf3f59eabbb47327f78966b781d77256.tar.xz |
remove deprecated http client lib methods
Diffstat (limited to 'packages/taler-wallet-core/src/operations/refresh.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/refresh.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 39c6ef906..dff6d3019 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -599,7 +599,9 @@ async function refreshMelt( }; const resp = await ws.runSequentialized([EXCHANGE_COINS_LOCK], async () => { - return await ws.http.postJson(reqUrl.href, meltReqBody, { + return await ws.http.fetch(reqUrl.href, { + method: "POST", + body: meltReqBody, timeout: getRefreshRequestTimeout(refreshGroup), }); }); @@ -906,7 +908,9 @@ async function refreshReveal( }); const resp = await ws.runSequentialized([EXCHANGE_COINS_LOCK], async () => { - return await ws.http.postJson(reqUrl.href, req, { + return await ws.http.fetch(reqUrl.href, { + body: req, + method: "POST", timeout: getRefreshRequestTimeout(refreshGroup), }); }); |