Add unit test for Pleroma API app controller

This commit is contained in:
Sean King 2021-08-28 23:18:12 -06:00
commit 33f063204e
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
3 changed files with 67 additions and 2 deletions

View file

@ -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()