get_channel_by_slug_preloaded! preloads now
This commit is contained in:
parent
3613b27741
commit
a9ca18de4a
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue