get_channel_by_slug_preloaded! preloads now

This commit is contained in:
Inhji 2023-03-14 07:22:13 +01:00
parent 3613b27741
commit a9ca18de4a

View file

@ -48,8 +48,7 @@ defmodule Chiya.Channels do
@doc """ @doc """
Gets a single channel by its slug with all associated entities preloaded. Gets a single channel by its slug with all associated entities preloaded.
""" """
def get_channel_by_slug_preloaded!(slug), do: Repo.get_by!(Channel, slug: slug) def get_channel_by_slug_preloaded!(slug), do: Repo.get_by!(Channel, slug: slug) |> preload_channel()
@doc """ @doc """
Creates a channel. Creates a channel.