aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-01-31 11:42:46 -0300
committerSebastian <sebasjm@gmail.com>2023-01-31 11:42:46 -0300
commit33c1759f16d92848c16890c602d9c7a42287eb97 (patch)
treecd77cd016e5fa66fd8b3db45b73949caadb1d47c /packages
parent5ff92139ba7448fdaed1d8ca4f7b46a8e46a67c4 (diff)
fix accept tip response type
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-core/src/operations/tip.ts1
-rw-r--r--packages/taler-wallet-core/src/wallet-api-types.ts3
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/tip.ts b/packages/taler-wallet-core/src/operations/tip.ts
index f9d20fa03..dabde9f62 100644
--- a/packages/taler-wallet-core/src/operations/tip.ts
+++ b/packages/taler-wallet-core/src/operations/tip.ts
@@ -359,6 +359,7 @@ export async function acceptTip(
}
tipRecord.acceptedTimestamp = TalerProtocolTimestamp.now();
await tx.tips.put(tipRecord);
+
return true;
});
if (found) {
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts
index f14018401..61d1417f9 100644
--- a/packages/taler-wallet-core/src/wallet-api-types.ts
+++ b/packages/taler-wallet-core/src/wallet-api-types.ts
@@ -32,6 +32,7 @@ import {
AcceptPeerPullPaymentRequest,
AcceptPeerPushPaymentRequest,
AcceptTipRequest,
+ AcceptTipResponse,
AcceptWithdrawalResponse,
AddExchangeRequest,
AddKnownBankAccountsRequest,
@@ -385,7 +386,7 @@ export type PrepareTipOp = {
export type AcceptTipOp = {
op: WalletApiOperation.AcceptTip;
request: AcceptTipRequest;
- response: EmptyObject;
+ response: AcceptTipResponse;
};
// group: Exchange Management