mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-23 08:43:46 +02:00
Code cleanup to use new findCountWhere function
This commit is contained in:
@@ -141,13 +141,11 @@ class DeletionService
|
||||
}
|
||||
|
||||
$this->database->beginTransaction();
|
||||
|
||||
$this->databaseRepository->withColumns('id')->findWhere([['server_id', '=', $server->id]])->each(function ($item) {
|
||||
$this->databaseManagementService->delete($item->id);
|
||||
});
|
||||
|
||||
$this->repository->delete($server->id);
|
||||
|
||||
$this->database->commit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user