Skip to content

Commit 4acd9aa

Browse files
Fix distinct type query for tasks
When we were doing this same query in Postgres we were receiving errors. This should address that problem.
1 parent 51b0aa0 commit 4acd9aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/flex/tasks_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def task_class
1111
end
1212

1313
def index
14+
@task_types = Flex::Task.distinct(:type).unscope(:order).pluck(:type)
1415
@tasks = filter_tasks
15-
@task_types = task_class.distinct.pluck(:type)
1616
end
1717

1818
def show

0 commit comments

Comments
 (0)