helps to add part of the query

This commit is contained in:
Grant Limberg 2021-08-20 10:30:37 -07:00
parent 6baac1b4e0
commit 3ec23f92ec
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

View File

@ -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 "