diff options
Diffstat (limited to 'packages/taler-wallet-cli/src')
-rw-r--r-- | packages/taler-wallet-cli/src/harness/harness.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-wallet-cli/src/harness/harness.ts b/packages/taler-wallet-cli/src/harness/harness.ts index 37a192db6..0f2e61a3d 100644 --- a/packages/taler-wallet-cli/src/harness/harness.ts +++ b/packages/taler-wallet-cli/src/harness/harness.ts @@ -1609,7 +1609,7 @@ export namespace MerchantPrivateApi { const baseUrl = merchantService.makeInstanceBaseUrl(instanceName); let url = new URL("private/orders", baseUrl); const resp = await axios.post(url.href, req, { - headers: withAuthorization, + headers: withAuthorization as Record<string, string>, }); return codecForPostOrderResponse().decode(resp.data); } @@ -1626,7 +1626,9 @@ export namespace MerchantPrivateApi { if (query.sessionId) { reqUrl.searchParams.set("session_id", query.sessionId); } - const resp = await axios.get(reqUrl.href, { headers: withAuthorization }); + const resp = await axios.get(reqUrl.href, { + headers: withAuthorization as Record<string, string>, + }); return codecForMerchantOrderPrivateStatusResponse().decode(resp.data); } |