Skip to content

Commit

Permalink
Fix stray erroneous ", :order"
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfb committed Jan 26, 2021
1 parent e448c4e commit a23ec4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/user_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def board_dashboard

#get publications that have been approved
#@approved_publications = @board.publications.collect{|p| p.status == "approved" ? p : nil}.compact
@approved_publications = Publication.where(owner_id: @board.id, :owner_type => "Board", :status => "approved").includes(identifiers: [:votes]), :order => "updated_at DESC" )
@approved_publications = Publication.where(owner_id: @board.id, :owner_type => "Board", :status => "approved").includes(identifiers: [:votes]).order(updated_at: :desc)

#remove approved publications if in the finalizer list
@finalizing_publications.each do |fp|
Expand Down

0 comments on commit a23ec4b

Please sign in to comment.