Add intVal check
This commit is contained in:
parent
2fca86584f
commit
221b0eed38
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class Webhooks extends Action
|
||||||
|
|
||||||
$webhook->setAttribute('logs', $logs);
|
$webhook->setAttribute('logs', $logs);
|
||||||
|
|
||||||
if ($attempts >= App::getEnv('_APP_WEBHOOK_MAX_FAILED_ATTEMPTS')) {
|
if ($attempts >= \intval(App::getEnv('_APP_WEBHOOK_MAX_FAILED_ATTEMPTS', '10'))) {
|
||||||
$webhook->setAttribute('enabled', false);
|
$webhook->setAttribute('enabled', false);
|
||||||
$this->sendEmailAlert($attempts, $statusCode, $webhook, $project, $dbForConsole, $queueForMails);
|
$this->sendEmailAlert($attempts, $statusCode, $webhook, $project, $dbForConsole, $queueForMails);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue