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

Commit 4cf6972

Browse files
committed
fix(article-comments): repo pinned comment
1 parent 2217b56 commit 4cf6972

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/groupher_server/cms/article_pined_comment.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defmodule GroupherServer.CMS.ArticlePinedComment do
1313
# alias Helper.HTML
1414

1515
@required_fields ~w(article_comment_id)a
16-
@optional_fields ~w(post_id job_id)a
16+
@optional_fields ~w(post_id job_id repo_id)a
1717

1818
@type t :: %ArticlePinedComment{}
1919
schema "articles_pined_comments" do

test/groupher_server_web/query/cms/comments/repo_comment_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ defmodule GroupherServer.Test.Query.Comments.RepoComment do
3030
}
3131
}
3232
"""
33-
@tag :wip2
3433
test "guest user can get comment participators after comment created",
3534
~m(guest_conn repo user user2)a do
3635
comment = "test comment"
@@ -239,6 +238,7 @@ defmodule GroupherServer.Test.Query.Comments.RepoComment do
239238
assert results["totalCount"] == total_count
240239
end
241240

241+
@tag :wip2
242242
test "guest user can get paged comment with pinned comment in it",
243243
~m(guest_conn repo user)a do
244244
total_count = 20

0 commit comments

Comments
 (0)