Do not show rejected propositions in gauge

This commit is contained in:
Petko Bordjukov 2019-10-04 14:37:36 +03:00
parent ec34b39699
commit 41718b9fca
1 changed files with 1 additions and 1 deletions

View File

@ -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