mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-17 05:34:04 +00:00
Fix API endpoints conferences/id/rooms/ & tracks/ issue #874
This commit is contained in:
parent
cb9cf0359b
commit
55cfc8ff60
2 changed files with 2 additions and 3 deletions
|
|
@ -8,8 +8,7 @@ module Api
|
|||
if params[:conference_id].blank?
|
||||
rooms = Room.all
|
||||
else
|
||||
conference = Conference.find_by_guid(params[:conference_id])
|
||||
rooms = conference.venue.rooms if conference.venue
|
||||
@conference.venue ? (rooms = @conference.venue.rooms) : (rooms = [])
|
||||
end
|
||||
respond_with rooms
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue