mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 20:19:05 +08:00
Merge pull request #3209 from aignatov-bio/ai-sci-5546-fix-activities-multiple-types-selected
Fix activities multiple types selected [SCI-5546]
This commit is contained in:
commit
a0c506e6fe
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ class ActivitiesService
|
||||||
end
|
end
|
||||||
|
|
||||||
query = query.where(owner_id: filters[:users]) if filters[:users]
|
query = query.where(owner_id: filters[:users]) if filters[:users]
|
||||||
query = query.where(type_of: filters[:types]) if filters[:types]
|
query = query.where(type_of: filters[:types].map(&:to_i)) if filters[:types]
|
||||||
|
|
||||||
query = query.where('created_at <= ?', Time.at(filters[:starting_timestamp].to_i)) if filters[:starting_timestamp]
|
query = query.where('created_at <= ?', Time.at(filters[:starting_timestamp].to_i)) if filters[:starting_timestamp]
|
||||||
|
|
||||||
activities =
|
activities =
|
||||||
|
|
Loading…
Reference in a new issue