mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix Hakiri issues
This commit is contained in:
parent
e41fa41acf
commit
c2a1ff1ffc
5 changed files with 9 additions and 7 deletions
|
|
@ -8,9 +8,9 @@ module Api
|
|||
users = User.joins(:event_users)
|
||||
else
|
||||
users = User.joins(event_users: { event: :conference })
|
||||
users = users.where('conferences.guid' => params[:conference_id])
|
||||
users = users.where(conferences: { guid: params[:conference_id] })
|
||||
end
|
||||
users = users.where('event_users.event_role' => 'speaker')
|
||||
users = users.where(event_users: {event_role: :speaker})
|
||||
render json: users, each_serializer: SpeakerSerializer
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue