@@ -51,7 +51,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
5151 upvote_[thread]
5252 unto_emotion_[thread]
5353 """
54- defmacro article_upvote_mutation ( thread ) do
54+ defmacrop article_upvote_mutation ( thread ) do
5555 quote do
5656 @ desc unquote ( "upvote to #{ thread } " )
5757 field unquote ( :"upvote_#{ thread } " ) , :article do
@@ -81,7 +81,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
8181 pin_[thread]
8282 unto_pin_[thread]
8383 """
84- defmacro article_pin_mutation ( thread ) do
84+ defmacrop article_pin_mutation ( thread ) do
8585 quote do
8686 @ desc unquote ( "pin to #{ thread } " )
8787 field unquote ( :"pin_#{ thread } " ) , unquote ( thread ) do
@@ -117,7 +117,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
117117 mark_delete_[thread]
118118 unto_mark_delete_[thread]
119119 """
120- defmacro article_mark_delete_mutation ( thread ) do
120+ defmacrop article_mark_delete_mutation ( thread ) do
121121 quote do
122122 @ desc unquote ( "mark delete a #{ thread } type article, aka soft-delete" )
123123 field unquote ( :"mark_delete_#{ thread } " ) , unquote ( thread ) do
@@ -152,7 +152,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
152152 mark_delete_[thread]
153153 """
154154 # TODO: if post belongs to multi communities, unset instead delete
155- defmacro article_delete_mutation ( thread ) do
155+ defmacrop article_delete_mutation ( thread ) do
156156 quote do
157157 @ desc unquote ( "delete a #{ thread } , not delete" )
158158 field unquote ( :"delete_#{ thread } " ) , unquote ( thread ) do
@@ -175,7 +175,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
175175 emotion_to_[thread]
176176 unto_emotion_to_[thread]
177177 """
178- defmacro article_emotion_mutation ( thread ) do
178+ defmacrop article_emotion_mutation ( thread ) do
179179 quote do
180180 @ desc unquote ( "emotion to #{ thread } " )
181181 field unquote ( :"emotion_to_#{ thread } " ) , unquote ( thread ) do
@@ -207,7 +207,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
207207 report_[thread]
208208 undo_report_[thread]
209209 """
210- defmacro article_report_mutation ( thread ) do
210+ defmacrop article_report_mutation ( thread ) do
211211 quote do
212212 @ desc unquote ( "report a #{ thread } " )
213213 field unquote ( :"report_#{ thread } " ) , unquote ( thread ) do
@@ -239,7 +239,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
239239 sink_[thread]
240240 undo_sink_[thread]
241241 """
242- defmacro article_sink_mutation ( thread ) do
242+ defmacrop article_sink_mutation ( thread ) do
243243 quote do
244244 @ desc unquote ( "sink a #{ thread } " )
245245 field unquote ( :"sink_#{ thread } " ) , :article do
@@ -275,7 +275,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
275275 lock_[thread]_comment
276276 undo_lock_[thread]_comment
277277 """
278- defmacro article_lock_comment_mutation ( thread ) do
278+ defmacrop article_lock_comment_mutation ( thread ) do
279279 quote do
280280 @ desc unquote ( "lock comment of a #{ thread } " )
281281 field unquote ( :"lock_#{ thread } _comment" ) , :article do
0 commit comments