summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2023-02-01 07:03:54 -0500
committerpriscilla <priscilla.huang@efrei.net>2023-02-01 07:03:54 -0500
commitad966ab422bba81956d89f1918624b23df7deb52 (patch)
tree21826605ba64455eb1c835144a6edd2471e64d23
parent8b18850523c9a2303c348b2ede777f012f610fda (diff)
downloadmerchant-ad966ab422bba81956d89f1918624b23df7deb52.tar.gz
merchant-ad966ab422bba81956d89f1918624b23df7deb52.tar.bz2
merchant-ad966ab422bba81956d89f1918624b23df7deb52.zip
update webhook header_template and body_template, these two can be optional now
-rw-r--r--src/backend/taler-merchant-webhook.c4
-rw-r--r--src/testing/testing_api_cmd_webhook.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-webhook.c b/src/backend/taler-merchant-webhook.c
index 9220e5c1..ed0e148d 100644
--- a/src/backend/taler-merchant-webhook.c
+++ b/src/backend/taler-merchant-webhook.c
@@ -171,7 +171,7 @@ handle_webhook_response (void *cls,
w->webhook_pending_serial);
/* GNUNET_DB_STATUS_SOFT_ERROR seems impossible */
- if ((GNUNET_DB_STATUS_HARD_ERROR == qs) ||(GNUNET_DB_STATUS_ONE_RESULT==qs))
+ if ((GNUNET_DB_STATUS_HARD_ERROR == qs) ||(GNUNET_DB_STATUS_SUCCESS_ONE_RESULT==qs))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed!\n");
@@ -206,7 +206,7 @@ handle_webhook_response (void *cls,
GNUNET_TIME_relative_to_absolute (next_attempt));
/* GNUNET_DB_STATUS_SOFT_ERROR seems impossible */
- if ((GNUNET_DB_STATUS_HARD_ERROR == qs) ||(GNUNET_DB_STATUS_ONE_RESULT==qs))
+ if ((GNUNET_DB_STATUS_HARD_ERROR == qs) ||(GNUNET_DB_STATUS_SUCCESS_ONE_RESULT==qs))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed!\n");
diff --git a/src/testing/testing_api_cmd_webhook.c b/src/testing/testing_api_cmd_webhook.c
index fa97db71..519e46a6 100644
--- a/src/testing/testing_api_cmd_webhook.c
+++ b/src/testing/testing_api_cmd_webhook.c
@@ -22,10 +22,10 @@
* @author Priscilla HUANG
*/
#include "platform.h"
-#include "taler_json_lib.h"
+#include "taler/taler_json_lib.h"
#include <gnunet/gnunet_curl_lib.h>
-#include "taler_signatures.h"
-#include "taler_testing_lib.h"
+#include "taler/taler_signatures.h"
+#include "taler/taler_testing_lib.h"
/**