diff --git a/app/controllers/api/speakers_controller.rb b/app/controllers/api/speakers_controller.rb index 871bb64..33f4cde 100644 --- a/app/controllers/api/speakers_controller.rb +++ b/app/controllers/api/speakers_controller.rb @@ -3,6 +3,6 @@ class Api::SpeakersController < Api::ApplicationController before_filter :require_current_conference! def index - @speakers = PersonalProfile.joins(user: [:events]).where(conference: current_conference) + @speakers = PersonalProfile.joins(user: [{events: [:slot] }]).where(conference: current_conference).uniq end end