Add miscellaneous stuff

This commit is contained in:
Thelonius Kort
2023-03-15 10:56:30 +01:00
parent 61253f301a
commit 43f3ea193f
5 changed files with 10 additions and 3 deletions

View File

@ -39,7 +39,7 @@ defmodule Outlook.Authors do
def get_author_with_articles!(id) do
Repo.get!(Author, id)
|> Repo.preload([:articles])
|> Repo.preload([articles: :translations])
end
@doc """