gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: -fix schema validation


From: gnunet
Subject: [taler-wallet-core] branch master updated: -fix schema validation
Date: Tue, 14 Feb 2023 13:10:45 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new e3bdfe61a -fix schema validation
e3bdfe61a is described below

commit e3bdfe61a8907704d8eb787acaf6e63253a905f9
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Feb 14 13:10:38 2023 +0100

    -fix schema validation
---
 packages/taler-util/src/transactions-types.ts             | 2 ++
 packages/taler-wallet-core/src/operations/transactions.ts | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/packages/taler-util/src/transactions-types.ts 
b/packages/taler-util/src/transactions-types.ts
index 98e333ad3..7d5cb9ae1 100644
--- a/packages/taler-util/src/transactions-types.ts
+++ b/packages/taler-util/src/transactions-types.ts
@@ -42,6 +42,7 @@ import {
   codecForString,
   codecForList,
   codecForAny,
+  codecForBoolean,
 } from "./codec.js";
 import {
   RefreshReason,
@@ -586,6 +587,7 @@ export const codecForTransactionsRequest = (): 
Codec<TransactionsRequest> =>
   buildCodecForObject<TransactionsRequest>()
     .property("currency", codecOptional(codecForString()))
     .property("search", codecOptional(codecForString()))
+    .property("includeRefreshes", codecOptional(codecForBoolean()))
     .build("TransactionsRequest");
 
 // FIXME: do full validation here!
diff --git a/packages/taler-wallet-core/src/operations/transactions.ts 
b/packages/taler-wallet-core/src/operations/transactions.ts
index 9ebd87cc0..277c219e1 100644
--- a/packages/taler-wallet-core/src/operations/transactions.ts
+++ b/packages/taler-wallet-core/src/operations/transactions.ts
@@ -24,6 +24,7 @@ import {
   constructPayPullUri,
   constructPayPushUri,
   ExtendedStatus,
+  j2s,
   Logger,
   OrderShortInfo,
   PaymentStatus,
@@ -958,6 +959,8 @@ export async function getTransactions(
         transactions.push(buildTransactionForPullPaymentDebit(pi));
       });
 
+      logger.info(`tx request: ${j2s(transactionsRequest)}`);
+
       if (transactionsRequest?.includeRefreshes) {
         tx.refreshGroups.iter().forEachAsync(async (rg) => {
           if (shouldSkipCurrency(transactionsRequest, rg.currency)) {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]