Updated count

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-18 17:33:24 +01:00
parent f984b45de2
commit 19bd99d159

View file

@ -338,7 +338,7 @@ class Accessory extends SnipeModel
*/
public function numCheckedOut()
{
return $this->users_count ?? $this->users->count();
return $this->users_count ?? $this->users()->count();
}