summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_update_wire_auditor_progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditordb/pg_update_wire_auditor_progress.c')
-rw-r--r--src/auditordb/pg_update_wire_auditor_progress.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/auditordb/pg_update_wire_auditor_progress.c b/src/auditordb/pg_update_wire_auditor_progress.c
index 5fb0ff31a..a4b991543 100644
--- a/src/auditordb/pg_update_wire_auditor_progress.c
+++ b/src/auditordb/pg_update_wire_auditor_progress.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2022 Taler Systems SA
+ Copyright (C) 2022-2023 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -34,8 +34,9 @@ TAH_PG_update_wire_auditor_progress (
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_timestamp (&pp->last_timestamp),
GNUNET_PQ_query_param_uint64 (&pp->last_reserve_close_uuid),
+ GNUNET_PQ_query_param_uint64 (&pp->last_batch_deposit_uuid),
+ GNUNET_PQ_query_param_uint64 (&pp->last_aggregation_serial),
GNUNET_PQ_query_param_auto_from_type (master_pub),
GNUNET_PQ_query_param_end
};
@@ -43,9 +44,10 @@ TAH_PG_update_wire_auditor_progress (
PREPARE (pg,
"wire_auditor_progress_update",
"UPDATE wire_auditor_progress SET "
- " last_timestamp=$1"
- ",last_reserve_close_uuid=$2"
- " WHERE master_pub=$3");
+ " last_reserve_close_uuid=$1"
+ ",last_batch_deposit_uuid=$2"
+ ",last_aggregation_serial=$3"
+ " WHERE master_pub=$4");
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
"wire_auditor_progress_update",
params);