Fix up typespecs

This commit is contained in:
Adam Rutkowski 2023-06-13 11:04:05 +02:00
parent d742125c69
commit e99f61c91c

View File

@ -43,7 +43,9 @@ defmodule Plausible.Funnels do
|> Ecto.Changeset.apply_changes() |> Ecto.Changeset.apply_changes()
end end
@spec list(Plausible.Site.t()) :: [Funnel.t()] @spec list(Plausible.Site.t()) :: [
%{name: String.t(), id: pos_integer(), steps_count: pos_integer()}
]
def list(%Plausible.Site{id: site_id}) do def list(%Plausible.Site{id: site_id}) do
Repo.all( Repo.all(
from f in Funnel, from f in Funnel,