refactor server view (phuuu)
This commit is contained in:
@@ -127,7 +127,6 @@ function refreshSession(?Team $team = null): void
|
||||
}
|
||||
function handleError(?Throwable $error = null, ?Livewire\Component $livewire = null, ?string $customErrorMessage = null)
|
||||
{
|
||||
loggy($error);
|
||||
if ($error instanceof TooManyRequestsException) {
|
||||
if (isset($livewire)) {
|
||||
return $livewire->dispatch('error', "Too many requests. Please try again in {$error->secondsUntilAvailable} seconds.");
|
||||
@@ -370,6 +369,9 @@ function translate_cron_expression($expression_to_validate): string
|
||||
}
|
||||
function validate_cron_expression($expression_to_validate): bool
|
||||
{
|
||||
if (empty($expression_to_validate)) {
|
||||
return false;
|
||||
}
|
||||
$isValid = false;
|
||||
$expression = new CronExpression($expression_to_validate);
|
||||
$isValid = $expression->isValid();
|
||||
|
Reference in New Issue
Block a user