1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-06-08 10:26:36 +00:00

fix test url issue

This commit is contained in:
mithereal 2022-07-29 21:55:47 -07:00
parent 75c36ae6af
commit a992934e11
3 changed files with 20 additions and 16 deletions

View file

@ -38,7 +38,7 @@ defmodule Farside do
Farside.Instance.Supervisor.list()
|> Enum.reduce(%{}, fn service, acc ->
{_, data} = :ets.lookup(String.to_atom(service), :data) |> List.first()
IO.inspect(data, label: "data")
Map.put(
acc,
String.replace_prefix(
@ -51,7 +51,7 @@ defmodule Farside do
end)
end
def get_service(service \\ "libreddit/r/popular") do
def get_service(service) do
service_name =
Enum.find_value(
@parent_services,