mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
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