From 1dcfc03cbce0142cb40f26e5bc2ecdd7543de3ad Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 4 Jun 2021 11:22:30 -0700 Subject: [PATCH] another query fix --- controller/PostgreSQL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 630143ad3..743c510a8 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -333,7 +333,7 @@ std::string PostgreSQL::getSSOAuthURL(const nlohmann::json &member) // find an unused nonce, if one exists. pqxx::result r = w.exec_params("SELECT nonce FROM ztc_sso_expiry " "WHERE network_id = $1 AND member_id = $2 " - "AND authentication_expiry_time IS NULL AND ((NOW() AT TIME ZONE 'UTC') <= nonce_expiry", + "AND authentication_expiry_time IS NULL AND ((NOW() AT TIME ZONE 'UTC') <= nonce_expiry)", networkId, memberId); if (r.size() == 1) {