[GraphQL] Add more filters to dossiers
This commit is contained in:
parent
b9c3d54168
commit
990c867c2e
9 changed files with 130 additions and 64 deletions
|
@ -53,7 +53,7 @@ class API::V1::DossiersController < APIController
|
|||
end
|
||||
|
||||
order = ORDER_DIRECTIONS.fetch(params[:order], :asc)
|
||||
@dossiers = @procedure.dossiers.state_not_brouillon.order_for_api(order)
|
||||
@dossiers = @procedure.dossiers.state_not_brouillon.order_by_created_at(order)
|
||||
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render json: {}, status: :not_found
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue