static function for mutation

This commit is contained in:
Shish 2023-02-08 00:18:10 +00:00
parent ef8e25d6f2
commit 648424d5c5

View file

@ -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));