       ** (Ecto.NoResultsError)
 
   """
-  def get_author!(id), do: Repo.get!(Author, id)
+  def get_author!(id) do
+    Author
+    |> Repo.get!(id)
+    |> Repo.preload(author: [user: :credential])
+  end
 
   @doc """
   Creates a author.

  import Ecto.Query, warn: false
  alias Coffeeword.Repo

  alias Coffeeword.Publications.Article

  @doc """
  Returns the list of articles.


  """
  def list_articles do
    Article
    |> Repo.all()
    |> Repo.preload(author: [user: :credential])
  end

  @doc """
