From 6d8c96b89f1eb3e3117abd38c886680a3046d9a5 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 28 May 2021 14:19:13 -0700 Subject: [PATCH] formatting --- controller/PostgreSQL.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index eca923a19..26d560879 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -290,7 +290,9 @@ void PostgreSQL::updateMemberOnLoad(const uint64_t networkId, const uint64_t mem } const char *params[1] = { nwids }; - PGresult *res = PQexecParams(conn, "SELECT org.client_id, org.authorization_endpoint FROM ztc_network AS nw, ztc_org AS org WHERE nw.id = $1 AND nw.sso_enabled = true AND org.owner_id = nw.owner_id", + PGresult *res = PQexecParams(conn, "SELECT org.client_id, org.authorization_endpoint " + "FROM ztc_network AS nw, ztc_org AS org " + "WHERE nw.id = $1 AND nw.sso_enabled = true AND org.owner_id = nw.owner_id", 1, NULL, params, @@ -309,7 +311,10 @@ void PostgreSQL::updateMemberOnLoad(const uint64_t networkId, const uint64_t mem PQclear(res); if ((!client_id.empty())&&(!authorization_endpoint.empty())) { const char *params2[2] = { nwids, ids }; - res = PQexecParams(conn, "SELECT e.nonce, e.authentication_expiry_time FROM ztc_sso_expiry AS e WHERE e.network_id = $1 AND e.member_id = $2 ORDER BY n.authentication_expiry_time DESC LIMIT 1", + res = PQexecParams(conn, "SELECT e.nonce, e.authentication_expiry_time " + "FROM ztc_sso_expiry AS e " + "WHERE e.network_id = $1 AND e.member_id = $2 " + "ORDER BY n.authentication_expiry_time DESC LIMIT 1", 1, NULL, params2,