This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ defmodule GroupherServer.CMS.Helper.Macros do
228
228
229
229
create(unique_index(:communities_[article]s, [:community_id, :[article]_id]))
230
230
"""
231
- defmacro article_community_field ( thread ) do
231
+ defmacro article_communities_field ( thread ) do
232
232
quote do
233
233
many_to_many (
234
234
:communities ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ defmodule GroupherServer.CMS.Job do
41
41
field ( :length , :integer )
42
42
43
43
article_tags_field ( :job )
44
- article_community_field ( :job )
44
+ article_communities_field ( :job )
45
45
general_article_fields ( )
46
46
end
47
47
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ defmodule GroupherServer.CMS.Post do
33
33
has_many ( :comments , { "posts_comments" , PostComment } )
34
34
35
35
article_tags_field ( :post )
36
- article_community_field ( :post )
36
+ article_communities_field ( :post )
37
37
general_article_fields ( )
38
38
end
39
39
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ defmodule GroupherServer.CMS.Repo do
42
42
field ( :last_sync , :utc_datetime )
43
43
44
44
article_tags_field ( :repo )
45
- article_community_field ( :repo )
45
+ article_communities_field ( :repo )
46
46
general_article_fields ( )
47
47
end
48
48
You can’t perform that action at this time.
0 commit comments