]> _ Git - fluidbook-toolbox.git/commitdiff
#7646 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 16 Oct 2025 10:25:27 +0000 (12:25 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 16 Oct 2025 10:25:27 +0000 (12:25 +0200)
app/Console/Commands/DSNCheck.php

index aec98878ce971bda7e97774ffccc3be9efcb6c6b..49bc7181460d67563ed3c8c3f506e9b8182a0638 100644 (file)
@@ -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',
                 '',