merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 2da3ea21808c036d8c5889774cb7d5c22d21e522
parent bf73535a39917dc3eba4a0bdb24b4a41f21de137
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Thu, 10 Jul 2025 08:37:05 +0200

fix incorrect expiration select statement for login tokens

Diffstat:
Msrc/backenddb/pg_lookup_login_tokens.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backenddb/pg_lookup_login_tokens.c b/src/backenddb/pg_lookup_login_tokens.c @@ -146,7 +146,7 @@ TMH_PG_lookup_login_tokens (void *cls, " JOIN merchant_instances" " USING (merchant_serial)" " WHERE merchant_instances.merchant_id=$1" - " AND expiration_time < $2" + " AND expiration_time > $2" " ORDER BY serial ASC" " OFFSET $3" " LIMIT $4"); @@ -163,7 +163,7 @@ TMH_PG_lookup_login_tokens (void *cls, " JOIN merchant_instances" " USING (merchant_serial)" " WHERE merchant_instances.merchant_id=$1" - " AND expiration_time < $2" + " AND expiration_time > $2" " ORDER BY serial DESC" " OFFSET $3" " LIMIT $4");