diff options
author | Sebastian <sebasjm@gmail.com> | 2022-09-14 08:37:33 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-09-14 08:37:33 -0300 |
commit | 9d044058e267e9e94f3ee63809a1e22426151ee5 (patch) | |
tree | c98839ce6a6d07df30534d4cfb06d0219f0bb12f | |
parent | 62911fd59364e709f1a3e904090f2f55ecd0db7c (diff) |
fixing properly adding query params
-rw-r--r-- | packages/taler-wallet-core/src/operations/transactions.ts | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts b/packages/taler-wallet-core/src/operations/transactions.ts index 5be24c57c..95be50183 100644 --- a/packages/taler-wallet-core/src/operations/transactions.ts +++ b/packages/taler-wallet-core/src/operations/transactions.ts @@ -19,35 +19,33 @@ */ import { AbsoluteTime, - AmountJson, - Amounts, + addPaytoQueryParams, Amounts, constructPayPullUri, constructPayPushUri, Logger, - OrderShortInfo, - PaymentStatus, + OrderShortInfo, PaymentStatus, RefundInfoShort, Transaction, TransactionsRequest, TransactionsResponse, TransactionType, WithdrawalDetails, - WithdrawalType, + WithdrawalType } from "@gnu-taler/taler-util"; -import { InternalWalletState } from "../internal-wallet-state.js"; import { AbortStatus, RefundState, WalletRefundItem, - WithdrawalRecordType, + WithdrawalRecordType } from "../db.js"; +import { InternalWalletState } from "../internal-wallet-state.js"; +import { RetryTags } from "../util/retries.js"; import { processDepositGroup } from "./deposits.js"; import { getExchangeDetails } from "./exchanges.js"; import { processPurchasePay } from "./pay.js"; import { processRefreshGroup } from "./refresh.js"; import { processTip } from "./tip.js"; import { processWithdrawalGroup } from "./withdraw.js"; -import { RetryTags } from "../util/retries.js"; const logger = new Logger("taler-wallet-core:transactions.ts"); @@ -297,7 +295,7 @@ export async function getTransactions( reservePub: wsr.reservePub, exchangePaytoUris: exchangeDetails.wireInfo?.accounts.map( - (x) => `${x.payto_uri}?subject=${wsr.reservePub}`, + (x) => addPaytoQueryParams(x.payto_uri, { subject: wsr.reservePub }), ) ?? [], }; } |