diff options
author | priscilla <priscilla.huang@efrei.net> | 2023-01-24 07:08:46 -0500 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2023-01-24 07:47:21 -0500 |
commit | f25e2b7639bacff2270a53185f8f731b0a3ac031 (patch) | |
tree | 0c6393b24629af398436cebede57ccb2c1fc85e3 | |
parent | d178d8ab42ece97ddc7d25a4fb9a8b825a0f88b8 (diff) | |
download | merchant-f25e2b7639bacff2270a53185f8f731b0a3ac031.tar.gz merchant-f25e2b7639bacff2270a53185f8f731b0a3ac031.tar.bz2 merchant-f25e2b7639bacff2270a53185f8f731b0a3ac031.zip |
update
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 7 | ||||
-rw-r--r-- | src/backenddb/test_merchantdb.c | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 3d31b5c2..959b2253 100644 --- 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 index cbf4e4b6..69a376aa 100644 --- 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; } |