소스 검색

yet another query fix

Grant Limberg 4 년 전
부모
커밋
21965ac8e8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      controller/PostgreSQL.cpp

+ 1 - 1
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_expiration)",
 			networkId, memberId);
 
 		if (r.size() == 1) {