diff options
author | Sebastian <sebasjm@gmail.com> | 2023-08-30 11:54:08 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-08-30 11:54:08 -0300 |
commit | 183aed4ba50e0dd4b9442cd85db8bdd91fa188e5 (patch) | |
tree | a97173566bb9bf4124a3f24c312d0a2df8f3cc5a /packages/taler-wallet-core/src/operations | |
parent | 84d4e68ab70c26ffcdccb5d62a507f9acf244fa3 (diff) | |
download | wallet-core-183aed4ba50e0dd4b9442cd85db8bdd91fa188e5.tar.xz |
tip -> reward
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r-- | packages/taler-wallet-core/src/operations/reward.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/operations/reward.ts b/packages/taler-wallet-core/src/operations/reward.ts index 69c888d7a..6f9d3ce85 100644 --- a/packages/taler-wallet-core/src/operations/reward.ts +++ b/packages/taler-wallet-core/src/operations/reward.ts @@ -150,14 +150,14 @@ export async function prepareTip( .mktx((x) => [x.rewards]) .runReadOnly(async (tx) => { return tx.rewards.indexes.byMerchantTipIdAndBaseUrl.get([ - res.merchantTipId, + res.merchantRewardId, res.merchantBaseUrl, ]); }); if (!tipRecord) { const tipStatusUrl = new URL( - `tips/${res.merchantTipId}`, + `rewards/${res.merchantRewardId}`, res.merchantBaseUrl, ); logger.trace("checking tip status from", tipStatusUrl.href); @@ -204,7 +204,7 @@ export async function prepareTip( next_url: tipPickupStatus.next_url, merchantBaseUrl: res.merchantBaseUrl, createdTimestamp: TalerPreciseTimestamp.now(), - merchantRewardId: res.merchantTipId, + merchantRewardId: res.merchantRewardId, rewardAmountEffective: Amounts.stringify(selectedDenoms.totalCoinValue), denomsSel: selectedDenoms, pickedUpTimestamp: undefined, |