gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] 03/14: small update of the categories webhook calls


From: gnunet
Subject: [taler-merchant] 03/14: small update of the categories webhook calls
Date: Sun, 08 Dec 2024 14:18:12 +0100

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

grothoff pushed a commit to branch master
in repository merchant.

commit d1c267b6f4d3306f32a64dc56b8be910895d4611
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
AuthorDate: Thu Nov 21 10:52:43 2024 +0100

    small update of the categories webhook calls
---
 src/backenddb/merchant-0013.sql | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/src/backenddb/merchant-0013.sql b/src/backenddb/merchant-0013.sql
index 68338f40..b9d535a3 100644
--- a/src/backenddb/merchant-0013.sql
+++ b/src/backenddb/merchant-0013.sql
@@ -52,9 +52,10 @@ BEGIN
              mw.url,
              mw.http_method,
              json_build_object(
-               'webhook_type', 'category_added',
-               'category_serial', NEW.category_serial,
-               'category_name', NEW.category_name
+                'webhook_type', 'category_added',
+                'category_serial', NEW.category_serial,
+                'category_name', NEW.category_name,
+                'category_name_i18n', NEW.category_name_i18n
              )::TEXT
       FROM merchant_webhook mw
       WHERE mw.event_type = 'category_added'
@@ -70,10 +71,12 @@ BEGIN
              mw.url,
              mw.http_method,
              json_build_object(
-               'webhook_type', 'category_updated',
-               'category_serial', NEW.category_serial,
-               'old_category_name', OLD.category_name,
-               'new_category_name', NEW.category_name
+                'webhook_type', 'category_updated',
+                'category_serial', NEW.category_serial,
+                'old_category_name', OLD.category_name,
+                'new_category_name', NEW.category_name,
+                'old_category_name_i18n', OLD.category_name_i18n,
+                'new_category_name_i18n', NEW.category_name_i18n
              )::TEXT
       FROM merchant_webhook mw
       WHERE mw.event_type = 'category_updated'
@@ -89,9 +92,10 @@ BEGIN
              mw.url,
              mw.http_method,
              json_build_object(
-               'webhook_type', 'category_deleted',
-               'category_serial', OLD.category_serial,
-               'category_name', OLD.category_name
+                'webhook_type', 'category_deleted',
+                'category_serial', OLD.category_serial,
+                'category_name', OLD.category_name,
+                'category_name_i18n', OLD.category_name_i18n
              )::TEXT
       FROM merchant_webhook mw
       WHERE mw.event_type = 'category_deleted'

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