Updated count

This commit is contained in:
cp6 2023-08-18 19:31:21 +10:00
parent e100203331
commit 877592f614

View File

@ -194,9 +194,7 @@ class Server extends Model
public static function serverYabsAmount(string $server_id): int
{//Returns amount of YABS a server has
return DB::table('yabs')
->where('server_id', '=', $server_id)
->get()->count();
return Yabs::where('server_id', $server_id)->count();
}
public function yabs()