Skip to content

Commit

Permalink
find by id
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfiredrill committed Nov 22, 2024
1 parent edf4878 commit fc0adf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/my_shows/episodes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def update
end

def destroy
@scheduled_show = @current_radio.scheduled_shows.friendly.find(params[:id])
@scheduled_show = @current_radio.scheduled_shows.find(params[:id])
authorize! :destroy, @scheduled_show
if @scheduled_show.destroy
render json: @scheduled_show
Expand Down

0 comments on commit fc0adf2

Please sign in to comment.