static function for mutation
This commit is contained in:
parent
ef8e25d6f2
commit
648424d5c5
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class Comment
|
|||
}
|
||||
|
||||
#[Mutation(name: "create_comment")]
|
||||
public function create_comment(int $post_id, string $comment): bool
|
||||
public static function create_comment(int $post_id, string $comment): bool
|
||||
{
|
||||
global $user;
|
||||
send_event(new CommentPostingEvent($post_id, $user, $comment));
|
||||
|
|
Reference in a new issue