fix(graphql): variables should be a plain hash

This commit is contained in:
Paul Chavard 2022-11-24 15:24:05 +01:00
parent 1022e4d18b
commit e3da500614

View file

@ -60,8 +60,10 @@ class API::V2::GraphqlController < API::V2::BaseController
else else
{} {}
end end
when Hash, ActionController::Parameters when Hash
ambiguous_param ambiguous_param
when ActionController::Parameters
ambiguous_param.to_unsafe_h
when nil when nil
{} {}
else else