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

Commit 9edb5eb

Browse files
committed
refactor(article-tags): naming
1 parent 5aab9ba commit 9edb5eb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/groupher_server/cms/helper/macros.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ defmodule GroupherServer.CMS.Helper.Macros do
228228
229229
create(unique_index(:communities_[article]s, [:community_id, :[article]_id]))
230230
"""
231-
defmacro article_community_field(thread) do
231+
defmacro article_communities_field(thread) do
232232
quote do
233233
many_to_many(
234234
:communities,

lib/groupher_server/cms/job.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ defmodule GroupherServer.CMS.Job do
4141
field(:length, :integer)
4242

4343
article_tags_field(:job)
44-
article_community_field(:job)
44+
article_communities_field(:job)
4545
general_article_fields()
4646
end
4747

lib/groupher_server/cms/post.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ defmodule GroupherServer.CMS.Post do
3333
has_many(:comments, {"posts_comments", PostComment})
3434

3535
article_tags_field(:post)
36-
article_community_field(:post)
36+
article_communities_field(:post)
3737
general_article_fields()
3838
end
3939

lib/groupher_server/cms/repo.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ defmodule GroupherServer.CMS.Repo do
4242
field(:last_sync, :utc_datetime)
4343

4444
article_tags_field(:repo)
45-
article_community_field(:repo)
45+
article_communities_field(:repo)
4646
general_article_fields()
4747
end
4848

0 commit comments

Comments
 (0)