Add listing translation with article
This commit is contained in:
@ -40,6 +40,12 @@ defmodule Outlook.Articles do
|
||||
|> Repo.preload([:author])
|
||||
end
|
||||
|
||||
def get_article_with_translations!(id) do
|
||||
Repo.get!(Article, id)
|
||||
|> Repo.preload([:author])
|
||||
|> Repo.preload([:translations])
|
||||
end
|
||||
|
||||
@doc """
|
||||
Creates a article.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user