Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
refactor(article-curd): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mydearxym committed Aug 6, 2019
1 parent aa54b76 commit f5cc3ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/groupher_server/cms/delegates/article_curd.ex
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ defmodule GroupherServer.CMS.Delegate.ArticleCURD do
end

defp create_content_result({:ok, %{create_content: result}}) do
Later.exec({__MODULE__, :nofify_admin_new_content, [result]})
Later.exec({__MODULE__, :notify_admin_new_content, [result]})
{:ok, result}
end

Expand Down Expand Up @@ -482,7 +482,7 @@ defmodule GroupherServer.CMS.Delegate.ArticleCURD do
end
end

defp nofify_admin_new_content(%{id: id} = result) do
defp notify_admin_new_content(%{id: id} = result) do
target = result.__struct__
preload = [:origial_community, author: :user]

Expand Down

0 comments on commit f5cc3ef

Please sign in to comment.