Add unit test for Pleroma API app controller
This commit is contained in:
parent
d02cf7b0cd
commit
33f063204e
3 changed files with 67 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ defmodule Pleroma.Web.OAuth.App do
|
|||
|
||||
@spec changeset(t(), map()) :: Ecto.Changeset.t()
|
||||
def changeset(struct, params) do
|
||||
cast(struct, params, [:client_name, :redirect_uris, :scopes, :website, :trusted])
|
||||
cast(struct, params, [:client_name, :redirect_uris, :scopes, :website, :trusted, :user_id])
|
||||
end
|
||||
|
||||
@spec register_changeset(t(), map()) :: Ecto.Changeset.t()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue