Pleroma.MFA: fix gradient error
lib/pleroma/mfa.ex: The map %{error: msg} on line 80 is expected to have type {:ok, list(binary())} | {:error, String.t()} but it has type %{required(:error) => any()}
This commit is contained in:
parent
7745ee27bc
commit
cccfdde14c
|
@ -77,7 +77,7 @@ def generate_backup_codes(%User{} = user) do
|
||||||
{:ok, codes}
|
{:ok, codes}
|
||||||
else
|
else
|
||||||
{:error, msg} ->
|
{:error, msg} ->
|
||||||
%{error: msg}
|
{:error, msg}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue