Fix build_application/1 match
This commit is contained in:
parent
b1e1db82bc
commit
85b2387f66
|
@ -536,6 +536,8 @@ defp build_emoji_map(emoji, users, current_user) do
|
||||||
end
|
end
|
||||||
|
|
||||||
@spec build_application(map() | nil) :: map() | nil
|
@spec build_application(map() | nil) :: map() | nil
|
||||||
defp build_application(%{type: _type, name: name, url: url}), do: %{name: name, website: url}
|
defp build_application(%{"type" => _type, "name" => name, "url" => url}),
|
||||||
|
do: %{name: name, website: url}
|
||||||
|
|
||||||
defp build_application(_), do: nil
|
defp build_application(_), do: nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue