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

Commit 105fc61

Browse files
committed
feat(blog-thread): wip
1 parent ef6f787 commit 105fc61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/groupher_server_web/middleware/passport_loader.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ defmodule GroupherServerWeb.Middleware.PassportLoader do
4747
resolution
4848
|> assign_owner_info(:article, article)
4949
|> assign_source(article)
50-
|> assign_article_communities_info(article, args)
50+
|> assign_article_communities_info(article)
5151
else
5252
{:error, err_msg} -> handle_absinthe_error(resolution, err_msg, ecode(:passport))
5353
end
@@ -70,7 +70,7 @@ defmodule GroupherServerWeb.Middleware.PassportLoader do
7070
end
7171

7272
# 取得 article 里面的 conmunities 字段
73-
defp assign_article_communities_info(resolution, article, args) do
73+
defp assign_article_communities_info(resolution, article) do
7474
arguments = resolution.arguments |> Map.merge(%{passport_communities: article.communities})
7575
%{resolution | arguments: arguments}
7676
end

0 commit comments

Comments
 (0)