Skip to content

Commit

Permalink
Merge pull request #10 from bakaphp/hotfix-report-events
Browse files Browse the repository at this point in the history
[0.1] Better Events handler
  • Loading branch information
arfenis committed Dec 23, 2021
2 parents c5d7de3 + 0ff6d78 commit ddb78f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public function isClosed() : bool
*
* @return void
*/
public function afterCreate()
public function afterSave()
{
$this->fire('moderation:createReport', $this);
$this->fire('moderation:handleReports', $this);
}
}

0 comments on commit ddb78f0

Please sign in to comment.