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
|
||||
|
||||
@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
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue