aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-08-30 11:54:08 -0300
committerSebastian <sebasjm@gmail.com>2023-08-30 11:54:08 -0300
commit183aed4ba50e0dd4b9442cd85db8bdd91fa188e5 (patch)
treea97173566bb9bf4124a3f24c312d0a2df8f3cc5a /packages/taler-wallet-core
parent84d4e68ab70c26ffcdccb5d62a507f9acf244fa3 (diff)
downloadwallet-core-183aed4ba50e0dd4b9442cd85db8bdd91fa188e5.tar.xz
tip -> reward
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r--packages/taler-wallet-core/src/operations/reward.ts6
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,