Skip to content

Admin request are broken #13

@MarkAltow

Description

@MarkAltow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions