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

Commit d515f7a

Browse files
committed
feat(blog-thread): remove matcher old wip
1 parent 68411d7 commit d515f7a

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

lib/groupher_server/cms/delegates/comment_curd.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defmodule GroupherServer.CMS.Delegate.CommentCURD do
1111
alias GroupherServer.{Accounts, CMS, Delivery, Repo}
1212

1313
alias Accounts.Model.User
14-
alias CMS.Model.{PostComment, PostCommentReply}
14+
alias CMS.Model.{Post, PostComment, PostCommentReply}
1515

1616
alias Helper.{ORM, QueryBuilder}
1717
alias Ecto.Multi

lib/groupher_server_web/middleware/passport_loader.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ defmodule GroupherServerWeb.Middleware.PassportLoader do
4646
# def call(%{context: %{cur_user: cur_user}, arguments: %{id: id}} = resolution, [source: .., base: ..]) do
4747
# Loader 应该使用 Map 作为参数,以方便模式匹配
4848
def call(%{context: %{cur_user: _}, arguments: %{id: id}} = resolution, args) do
49+
IO.inspect(thread, label: "thread")
50+
IO.inspect(react, label: "react")
51+
IO.inspect("-------")
52+
4953
with {:ok, thread, react} <- parse_source(args, resolution),
5054
{:ok, action} <- match_action(thread, react),
5155
{:ok, preload} <- parse_preload(action, args),

test/groupher_server_web/mutation/cms/articles/blog_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule GroupherServer.Test.Mutation.Articles.Blog do
22
use GroupherServer.TestTools
33

44
alias Helper.ORM
5-
alias GroupherServer.{CMS, Delivery}
5+
alias GroupherServer.CMS
66

77
alias CMS.Model.Blog
88

test/groupher_server_web/query/cms/old_post_comment_test.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ defmodule GroupherServer.Test.Query.OldPostComment do
219219
}
220220
}
221221
"""
222+
@tag :wip
222223
test "guest user can get replies info", ~m(guest_conn post user community)a do
223224
body = "test comment"
224225

0 commit comments

Comments
 (0)