Skip to content

Commit

Permalink
Add "AND" keyword to sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
HDinger committed Nov 9, 2023
1 parent be7dc8b commit 8defbc1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def where
"EXISTS (#{project_member_subquery})"
else
"NOT EXISTS (#{project_member_subquery})"

end
end

Expand All @@ -55,7 +54,7 @@ def project_member_subquery
project_members.user_id = members.user_id AND
project_members.project_id = members.project_id AND
project_members.entity_type IS NULL AND
project_members.entity_id IS NULL
project_members.entity_id IS NULL AND
project_members.id != members.id
SQL
end
Expand Down

0 comments on commit 8defbc1

Please sign in to comment.