Add importing html and save it to Article
Additionally defines a wizard logic which is partially unused yet.
This commit is contained in:
@ -35,7 +35,10 @@ defmodule Outlook.Articles do
|
||||
** (Ecto.NoResultsError)
|
||||
|
||||
"""
|
||||
def get_article!(id), do: Repo.get!(Article, id)
|
||||
def get_article!(id) do
|
||||
Repo.get!(Article, id)
|
||||
|> Repo.preload([:author])
|
||||
end
|
||||
|
||||
@doc """
|
||||
Creates a article.
|
||||
|
||||
Reference in New Issue
Block a user