elixir-keycloak icon indicating copy to clipboard operation
elixir-keycloak copied to clipboard

Admin request are broken

Open MarkAltow opened this issue 1 year ago • 0 comments

In the admin requests the line opts = Keyword.update(opts, :params, params, &Keyword.merge/2) is just borken, as the update does not accept functions with 2 parameters. But in general I dont understand the reason behind the merge there. I guess you wanted to merge the :params from opts and the params from the function parameter.

I guess it would work with opts = Keyword.update(opts, :params, params, &Keyword.merge(params, &1)) So it updates the :params in opts by either replacing it by the params or merging them together.

MarkAltow avatar May 16 '23 15:05 MarkAltow