mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Fix counts for archived tasks [SCI-6881] (#4132)
This commit is contained in:
parent
1edf5f5d13
commit
95a2cc5298
1 changed files with 2 additions and 2 deletions
|
@ -262,8 +262,8 @@ class ExperimentsController < ApplicationController
|
|||
.left_outer_joins(:designated_users, :task_comments)
|
||||
.preload(:tags, outputs: :to)
|
||||
.preload(:my_module_status, :my_module_group, user_assignments: %i(user user_role))
|
||||
.select('COUNT(users.id) as designated_users_count')
|
||||
.select('COUNT(comments.id) as task_comments_count')
|
||||
.select('COUNT(DISTINCT users.id) as designated_users_count')
|
||||
.select('COUNT(DISTINCT comments.id) as task_comments_count')
|
||||
.select('my_modules.*').group(:id)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue