mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Fix my_module_activities in AcitivtyService [SCI-6562] (#3908)
This commit is contained in:
parent
577f449b95
commit
87d202f3eb
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class ActivitiesService
|
|||
end
|
||||
|
||||
def self.my_module_activities(my_module)
|
||||
subjects_with_children = load_subjects_children('MyModule': [my_module.id])
|
||||
subjects_with_children = load_subjects_children('MyModule' => [my_module.id])
|
||||
query = Activity.where(project: my_module.experiment.project)
|
||||
query.where(
|
||||
subjects_with_children.to_h.map { '(subject_type = ? AND subject_id IN(?))' }.join(' OR '),
|
||||
|
|
Loading…
Reference in a new issue