gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] 12/14: small fix


From: gnunet
Subject: [taler-merchant] 12/14: small fix
Date: Sun, 08 Dec 2024 14:18:21 +0100

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

grothoff pushed a commit to branch master
in repository merchant.

commit 384b0265f761315eeed000577da8b47d01d94eec
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
AuthorDate: Wed Dec 4 20:30:07 2024 +0100

    small fix
---
 src/backenddb/pg_insert_transfer_details.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backenddb/pg_insert_transfer_details.sql 
b/src/backenddb/pg_insert_transfer_details.sql
index 13f0549b..0d703246 100644
--- a/src/backenddb/pg_insert_transfer_details.sql
+++ b/src/backenddb/pg_insert_transfer_details.sql
@@ -229,7 +229,7 @@ LOOP
         FROM merchant_contract_terms
        WHERE order_serial=my_affected_orders.order_serial;
 
-      -- Insert pending webhook
+      -- Insert pending webhook if it exists
       INSERT INTO merchant_pending_webhooks
       (merchant_serial
       ,webhook_serial
@@ -240,7 +240,7 @@ LOOP
             ,mw.webhook_serial
             ,mw.url
             ,mw.http_method
-            ,json_build_object('order_id', my_order_id)::TEXT
+            ,replace_placeholder(mw.body_template, 'order_id', 
my_order_id)::TEXT
       FROM merchant_webhook mw
       WHERE mw.event_type = 'order_settled'
         AND mw.merchant_serial = my_merchant_serial;

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