Remove unused groupBy (#1130)

Fixes #1107
This commit is contained in:
Charles 2025-03-18 18:07:35 -04:00 committed by GitHub
parent 29f3defc73
commit e5d9d53aa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -289,8 +289,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
->leftJoin('subusers', 'subusers.server_id', '=', 'servers.id')
->where(function (Builder $builder) {
$builder->where('servers.owner_id', $this->id)->orWhere('subusers.user_id', $this->id);
})
->groupBy('servers.id');
});
}
public function subusers(): HasMany