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:
Mark Felder 2024-01-31 13:50:43 -05:00
parent 7745ee27bc
commit cccfdde14c
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ def generate_backup_codes(%User{} = user) do
{:ok, codes}
else
{:error, msg} ->
%{error: msg}
{:error, msg}
end
end