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
|
|
@ -4,9 +4,9 @@ module Api
|
|||
respond_to :json
|
||||
|
||||
def index
|
||||
events = Event.includes(:conference, :track, :room, :event_type, event_user: :user)
|
||||
events = Event.includes(:conference, :track, :room, :event_type, event_users: :user)
|
||||
unless params[:conference_id].blank?
|
||||
events = events.where('conferences.guid' => params[:conference_id])
|
||||
events = events.where(conferences: { guid: params[:conference_id] })
|
||||
end
|
||||
respond_with events.confirmed
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue