mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-27 10:33:44 +02:00
Refactor how repositories for the daemon work.
This commit is contained in:
@@ -70,7 +70,7 @@ class DaemonKeyRepository extends EloquentRepository implements DaemonKeyReposit
|
||||
*/
|
||||
public function getKeysForRevocation(User $user): Collection
|
||||
{
|
||||
return $this->getBuilder()->with('server:id,uuid,node_id')->where('user_id', $user->id)->get($this->getColumns());
|
||||
return $this->getBuilder()->with('node')->where('user_id', $user->id)->get($this->getColumns());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,7 +30,7 @@ class UserRepository extends EloquentRepository implements UserRepositoryInterfa
|
||||
public function getAllUsersWithCounts(): LengthAwarePaginator
|
||||
{
|
||||
return $this->getBuilder()->withCount('servers', 'subuserOf')
|
||||
->setSearchTerm($this->getSearchTerm())
|
||||
->search($this->getSearchTerm())
|
||||
->paginate(50, $this->getColumns());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user