Add importing html and save it to Article
Additionally defines a wizard logic which is partially unused yet.
This commit is contained in:
@ -37,6 +37,11 @@ defmodule Outlook.Authors do
|
||||
"""
|
||||
def get_author!(id), do: Repo.get!(Author, id)
|
||||
|
||||
def get_author_with_articles!(id) do
|
||||
Repo.get!(Author, id)
|
||||
|> Repo.preload([:articles])
|
||||
end
|
||||
|
||||
@doc """
|
||||
Creates a author.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user