diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-31 11:42:46 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-31 11:42:46 -0300 |
commit | 33c1759f16d92848c16890c602d9c7a42287eb97 (patch) | |
tree | cd77cd016e5fa66fd8b3db45b73949caadb1d47c | |
parent | 5ff92139ba7448fdaed1d8ca4f7b46a8e46a67c4 (diff) | |
download | wallet-core-33c1759f16d92848c16890c602d9c7a42287eb97.tar.xz |
fix accept tip response type
-rw-r--r-- | packages/taler-wallet-core/src/operations/tip.ts | 1 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/wallet-api-types.ts | 3 |
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 |