aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core
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/taler-wallet-core
parent5ff92139ba7448fdaed1d8ca4f7b46a8e46a67c4 (diff)
downloadwallet-core-33c1759f16d92848c16890c602d9c7a42287eb97.tar.xz
fix accept tip response type
Diffstat (limited to 'packages/taler-wallet-core')
-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