gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: fix handling where account_pub i


From: gnunet
Subject: [taler-exchange] branch master updated: fix handling where account_pub is NULL
Date: Thu, 05 Sep 2024 11:58:05 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 481943e78 fix handling where account_pub is NULL
481943e78 is described below

commit 481943e780bc49e355570feb884f67c5efba0e3c
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Sep 5 11:58:01 2024 +0200

    fix handling where account_pub is NULL
---
 src/exchangedb/exchange_do_trigger_kyc_rule_for_account.sql | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/exchangedb/exchange_do_trigger_kyc_rule_for_account.sql 
b/src/exchangedb/exchange_do_trigger_kyc_rule_for_account.sql
index d63e1d2b8..504b133f3 100644
--- a/src/exchangedb/exchange_do_trigger_kyc_rule_for_account.sql
+++ b/src/exchangedb/exchange_do_trigger_kyc_rule_for_account.sql
@@ -49,12 +49,7 @@ THEN
   -- Extract details, determine if KYC auth matches.
   my_access_token = my_rec.access_token;
   my_account_pub = my_rec.target_pub;
-  IF in_merchant_pub IS NULL
-  THEN
-    out_bad_kyc_auth = FALSE;
-  ELSE
-    out_bad_kyc_auth = (my_account_pub = in_merchant_pub);
-  END IF;
+  out_bad_kyc_auth = COALESCE ((my_account_pub = in_merchant_pub), TRUE);
 ELSE
   -- No constraint on merchant_pub, just create
   -- the wire_target.

-- 
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]