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

Commit d567d52

Browse files
committed
fix(article-comments): rename pined -> pinned
1 parent cf14d51 commit d567d52

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/groupher_server/cms/delegates/article_comment_action.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ defmodule GroupherServer.CMS.Delegate.ArticleCommentAction do
5050
pined_comments_count = Repo.aggregate(count_query, :count)
5151

5252
case pined_comments_count >= @pinned_comment_limit do
53-
true -> {:error, "only support #{@pinned_comment_limit} pinned comment for each article"}
54-
false -> {:ok, :pass}
53+
true ->
54+
{:error, "only support #{@pinned_comment_limit} pinned comment for each article"}
55+
56+
false ->
57+
{:ok, :pass}
5558
end
5659
end)
5760
|> Multi.run(:update_comment_flag, fn _, _ ->

0 commit comments

Comments
 (0)