Fix up typespecs

pull/3023/head
Adam Rutkowski 3 years ago
parent d742125c69
commit e99f61c91c

@ -43,7 +43,9 @@ defmodule Plausible.Funnels do
|> Ecto.Changeset.apply_changes()
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
Repo.all(
from f in Funnel,

Loading…
Cancel
Save