change uniq to distinct for SQL queries to fix deprecation
This commit is contained in:
parent
2180e6197c
commit
ba9d19c832
9 changed files with 9 additions and 9 deletions
|
|
@ -15,7 +15,7 @@ module Api
|
|||
users = User.joins(:event_users)
|
||||
end
|
||||
|
||||
users = users.where(event_users: {event_role: :speaker}).uniq
|
||||
users = users.where(event_users: {event_role: :speaker}).distinct
|
||||
render json: users, each_serializer: SpeakerSerializer, callback: params['callback']
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue