From: Vincent Vanwaelscappel Date: Thu, 16 Oct 2025 10:25:27 +0000 (+0200) Subject: #7646 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f30f8e2d24571c80003adfa5b656cf1d9b1d6038;p=fluidbook-toolbox.git #7646 @0.5 --- diff --git a/app/Console/Commands/DSNCheck.php b/app/Console/Commands/DSNCheck.php index aec98878c..49bc71814 100644 --- a/app/Console/Commands/DSNCheck.php +++ b/app/Console/Commands/DSNCheck.php @@ -34,10 +34,8 @@ class DSNCheck extends ToolboxCommand foreach ($s->depots->declarant->depot as $sub) { if ($sub->statut === 'OK') { $ok = true; - continue; + break; } - //$feedback = $dsn->getFeedbacks($sub->idflux); - //dd($feedback); } if (!$ok) { $notify = "Aucune DNS valide envoyée depuis le " . date('d/m/Y', $date->getTimestamp()); @@ -55,7 +53,7 @@ class DSNCheck extends ToolboxCommand $notify, [], ); - } else if ($day >= 10) { + } else if (in_array($day, [10, 14, 15])) { Mattermost::send(self::MATTERMOST_CHANNEL, ':large_green_circle: DSN OK', '',