mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 20:19:05 +08:00
Fix activities multiple types selected [SCI-5546]
This commit is contained in:
parent
8202181095
commit
c6e4d6ef94
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ class ActivitiesService
|
|||
end
|
||||
|
||||
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]
|
||||
|
||||
activities =
|
||||
|
|
Loading…
Reference in a new issue