Updated count
This commit is contained in:
parent
e100203331
commit
877592f614
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user