fixing properly adding query params
This commit is contained in:
parent
62911fd593
commit
9d044058e2
@ -19,35 +19,33 @@
|
|||||||
*/
|
*/
|
||||||
import {
|
import {
|
||||||
AbsoluteTime,
|
AbsoluteTime,
|
||||||
AmountJson,
|
addPaytoQueryParams, Amounts,
|
||||||
Amounts,
|
|
||||||
constructPayPullUri,
|
constructPayPullUri,
|
||||||
constructPayPushUri,
|
constructPayPushUri,
|
||||||
Logger,
|
Logger,
|
||||||
OrderShortInfo,
|
OrderShortInfo, PaymentStatus,
|
||||||
PaymentStatus,
|
|
||||||
RefundInfoShort,
|
RefundInfoShort,
|
||||||
Transaction,
|
Transaction,
|
||||||
TransactionsRequest,
|
TransactionsRequest,
|
||||||
TransactionsResponse,
|
TransactionsResponse,
|
||||||
TransactionType,
|
TransactionType,
|
||||||
WithdrawalDetails,
|
WithdrawalDetails,
|
||||||
WithdrawalType,
|
WithdrawalType
|
||||||
} from "@gnu-taler/taler-util";
|
} from "@gnu-taler/taler-util";
|
||||||
import { InternalWalletState } from "../internal-wallet-state.js";
|
|
||||||
import {
|
import {
|
||||||
AbortStatus,
|
AbortStatus,
|
||||||
RefundState,
|
RefundState,
|
||||||
WalletRefundItem,
|
WalletRefundItem,
|
||||||
WithdrawalRecordType,
|
WithdrawalRecordType
|
||||||
} from "../db.js";
|
} from "../db.js";
|
||||||
|
import { InternalWalletState } from "../internal-wallet-state.js";
|
||||||
|
import { RetryTags } from "../util/retries.js";
|
||||||
import { processDepositGroup } from "./deposits.js";
|
import { processDepositGroup } from "./deposits.js";
|
||||||
import { getExchangeDetails } from "./exchanges.js";
|
import { getExchangeDetails } from "./exchanges.js";
|
||||||
import { processPurchasePay } from "./pay.js";
|
import { processPurchasePay } from "./pay.js";
|
||||||
import { processRefreshGroup } from "./refresh.js";
|
import { processRefreshGroup } from "./refresh.js";
|
||||||
import { processTip } from "./tip.js";
|
import { processTip } from "./tip.js";
|
||||||
import { processWithdrawalGroup } from "./withdraw.js";
|
import { processWithdrawalGroup } from "./withdraw.js";
|
||||||
import { RetryTags } from "../util/retries.js";
|
|
||||||
|
|
||||||
const logger = new Logger("taler-wallet-core:transactions.ts");
|
const logger = new Logger("taler-wallet-core:transactions.ts");
|
||||||
|
|
||||||
@ -297,7 +295,7 @@ export async function getTransactions(
|
|||||||
reservePub: wsr.reservePub,
|
reservePub: wsr.reservePub,
|
||||||
exchangePaytoUris:
|
exchangePaytoUris:
|
||||||
exchangeDetails.wireInfo?.accounts.map(
|
exchangeDetails.wireInfo?.accounts.map(
|
||||||
(x) => `${x.payto_uri}?subject=${wsr.reservePub}`,
|
(x) => addPaytoQueryParams(x.payto_uri, { subject: wsr.reservePub }),
|
||||||
) ?? [],
|
) ?? [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user