1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 07:54:25 +02:00

Rename discussion.participantsCount

This commit is contained in:
Toby Zerner
2018-08-24 20:38:29 +09:30
parent 7716944616
commit cbd0643540
3 changed files with 6 additions and 6 deletions

View File

@@ -242,11 +242,11 @@ class Discussion extends AbstractModel
}
/**
* Refresh the discussion's participants count.
* Refresh the discussion's participant count.
*
* @return $this
*/
public function refreshParticipantsCount()
public function refreshParticipantCount()
{
$this->participant_count = $this->participants()->count('users.id');