Commit 0c2465e9 by Diana Huang

Merge pull request #134 from edx/diana/team-discussions-2

Remove exists clause from query.
parents 3161c460 f2d9f596
...@@ -133,7 +133,7 @@ helpers do ...@@ -133,7 +133,7 @@ helpers do
context=:course context=:course
) )
context_threads = comment_threads.any_of({:context.exists => false}, {:context => context}) context_threads = comment_threads.where({:context => context})
if not group_ids.empty? if not group_ids.empty?
group_threads = get_group_id_criteria(comment_threads, group_ids) group_threads = get_group_id_criteria(comment_threads, group_ids)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment