fix(manager): default resource order

This commit is contained in:
Colin Darie 2023-01-10 00:11:54 +01:00
parent 22e2749357
commit 812376cfb2

View file

@ -4,7 +4,7 @@ module Manager
before_action :default_params
def default_params
params[resource_name] ||= {
request.query_parameters[resource_name] ||= {
order: "created_at",
direction: "desc"
}