Handle errors from comment changeset as well when creating discussions
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
b371a9fe01
commit
eb2050a997
@ -105,7 +105,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Discussion do
|
|||||||
}) do
|
}) do
|
||||||
{:ok, discussion}
|
{:ok, discussion}
|
||||||
else
|
else
|
||||||
{:error, :discussion, err, _} ->
|
{:error, type, err, _} when type in [:discussion, :comment] ->
|
||||||
{:error, err}
|
{:error, err}
|
||||||
|
|
||||||
{:member, false} ->
|
{:member, false} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user