mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-22 15:34:46 +02:00
Fixed has servers error message
Fixed "Nest has active servers error"
This commit is contained in:
parent
917e5e19aa
commit
03dba1a00a
@ -51,7 +51,7 @@ class NestDeletionService
|
|||||||
{
|
{
|
||||||
$count = $this->serverRepository->findCountWhere([['nest_id', '=', $nest]]);
|
$count = $this->serverRepository->findCountWhere([['nest_id', '=', $nest]]);
|
||||||
if ($count > 0) {
|
if ($count > 0) {
|
||||||
throw new HasActiveServersException(trans('exceptions.service.delete_has_servers'));
|
throw new HasActiveServersException(trans('exceptions.nest.delete_has_servers'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->repository->delete($nest);
|
return $this->repository->delete($nest);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user