From 3ec23f92ec7a860d1fcd3754f5090fe64c571b85 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Fri, 20 Aug 2021 10:30:37 -0700 Subject: [PATCH] helps to add part of the query --- controller/PostgreSQL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 46257d365..6d2e78a88 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -640,7 +640,8 @@ void PostgreSQL::initializeMembers() " INNER JOIN ztc_network n1 " " ON n.id = e.network_id " " WHERE e.network_id = m.network_id AND e.member_id = m.id AND n.sso_enabled = TRUE AND e.authentication_expiry_time IS NOT NULL " - " ORDER BY e.authentication_expiry_time DESC LIMIT 1) AS authentication_expiry_time " + " ORDER BY e.authentication_expiry_time DESC LIMIT 1) AS authentication_expiry_time, " + " ARRAY(SELECT DISTINCT address FROM ztc_member_ip_assignment WHERE member_id = m.id AND network_id = m.network_id) AS assigned_addresses " "FROM ztc_member m " "INNER JOIN ztc_network n " " ON n.id = m.network_id "