Skip to content

Commit

Permalink
#69 | Fix join condition
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayvenu committed Sep 7, 2023
1 parent 6f2fb2b commit 934b5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/sql/api/findByUuid.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ from users u
left join account_admin aa on u.id = aa.admin_id
left join user_group ug on u.id = ug.user_id and ug.is_voided is false
left join groups g on ug.group_id = g.id
left join group_privilege gp on ug.id = gp.group_id and gp.is_voided is false
left join group_privilege gp on g.id = gp.group_id and gp.is_voided is false
left join privilege p on gp.privilege_id = p.id and p.name = 'Analytics'
where u.uuid = :uuid
group by u.id, u.username, u.uuid, u.organisation_id;

0 comments on commit 934b5d0

Please sign in to comment.