Do not show rejected propositions in gauge
This commit is contained in:
parent
ec34b39699
commit
41718b9fca
@ -8,7 +8,7 @@ class Api::EventsController < Api::ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def halfnarp_friendly
|
def halfnarp_friendly
|
||||||
@events = current_conference.events.includes(:track, :event_type)
|
@events = current_conference.events.joins(:proposition).includes(:track, :event_type).where.not(propositions: {status: :rejected})
|
||||||
render json: @events, include: [:track, :event_type]
|
render json: @events, include: [:track, :event_type]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user