mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:47:32 +00:00
fix: join on instanceIDs in queries (#4612)
This commit is contained in:
@@ -30,10 +30,13 @@ var (
|
||||
"FROM projections.org_members2 AS members " +
|
||||
"LEFT JOIN projections.users4_humans " +
|
||||
"ON members.user_id = projections.users4_humans.user_id " +
|
||||
"AND members.instance_id = projections.users4_humans.instance_id " +
|
||||
"LEFT JOIN projections.users4_machines " +
|
||||
"ON members.user_id = projections.users4_machines.user_id " +
|
||||
"AND members.instance_id = projections.users4_machines.instance_id " +
|
||||
"LEFT JOIN projections.login_names " +
|
||||
"ON members.user_id = projections.login_names.user_id " +
|
||||
"AND members.instance_id = projections.login_names.instance_id " +
|
||||
"WHERE projections.login_names.is_primary = $1")
|
||||
orgMembersColumns = []string{
|
||||
"creation_date",
|
||||
|
Reference in New Issue
Block a user