commit f25e2b7639bacff2270a53185f8f731b0a3ac031
parent d178d8ab42ece97ddc7d25a4fb9a8b825a0f88b8
Author: priscilla <priscilla.huang@efrei.net>
Date: Tue, 24 Jan 2023 07:08:46 -0500
update
Diffstat:
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
@@ -7803,16 +7803,13 @@ postgres_lookup_all_webhooks (void *cls,
static enum GNUNET_DB_QueryStatus
postgres_update_pending_webhook (void *cls,
uint64_t webhook_serial,
- const struct
- TALER_MERCHANTDB_PendingWebhookDetails *pwb)
-// maybe add: http status of failure?
+ struct GNUNET_TIME_Absolute next_attempt)
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_uint64 (&webhook_serial),
- GNUNET_PQ_query_param_absolute_time (&pwb->next_attempt),
+ GNUNET_PQ_query_param_absolute_time (&next_attempt),
GNUNET_PQ_query_param_end
-
};
check_connection (pg);
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
@@ -7909,7 +7909,7 @@ test_update_pending_webhook (const struct InstanceData *instance,
TEST_COND_RET_ON_FAIL (expected_result ==
plugin->update_pending_webhook (plugin->cls,
pwebhook->webhook_serial,
- &pwebhook->pwebhook),
+ pwebhook->pwebhook.next_attempt),
"Update pending webhook failed\n");
return 0;
}