Skip to content

Commit

Permalink
fixed syntax in works controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Apr 8, 2019
1 parent 573d4b0 commit c605ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/works_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def index
query: params[:query],
"member-id" => params[:provider_id],
"data-center-id" => params[:client_id],
"page[cursor]" => Array.wrap(@dois.last[:sort]).first,
"page[cursor]" => page[:cursor].present? ? Array.wrap(@dois.last[:sort]).first : nil,
"page[size]" => page[:size] }.compact.to_query
}.compact
options[:include] = @include
Expand Down

0 comments on commit c605ed6

Please sign in to comment.