Merge branch 'fixes' into 'master'
Handle errors from comment changeset as well when creating discussions See merge request framasoft/mobilizon!902
This commit is contained in:
commit
fc94651577
@ -105,7 +105,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Discussion do
|
||||
}) do
|
||||
{:ok, discussion}
|
||||
else
|
||||
{:error, :discussion, err, _} ->
|
||||
{:error, type, err, _} when type in [:discussion, :comment] ->
|
||||
{:error, err}
|
||||
|
||||
{:member, false} ->
|
||||
|
Loading…
Reference in New Issue
Block a user