another query fix

This commit is contained in:
Grant Limberg 2021-06-04 11:22:30 -07:00
parent 0702e581a1
commit 1dcfc03cbc
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

View File

@ -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) {