]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7646 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 Oct 2025 11:17:53 +0000 (13:17 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 15 Oct 2025 11:17:53 +0000 (13:17 +0200)
app/Console/Commands/DSNCheck.php

index 56228469160ddaba8606a156e8faae6106988954..aec98878ce971bda7e97774ffccc3be9efcb6c6b 100644 (file)
@@ -32,7 +32,7 @@ class DSNCheck extends ToolboxCommand
                 } else {
                     $ok = false;
                     foreach ($s->depots->declarant->depot as $sub) {
-                        if ($sub->statut !== 'OK') {
+                        if ($sub->statut === 'OK') {
                             $ok = true;
                             continue;
                         }
@@ -55,12 +55,11 @@ class DSNCheck extends ToolboxCommand
                 $notify,
                 [],
             );
-            dd($notify);
-        } else if ($day == 10) {
+        } else if ($day >= 10) {
             Mattermost::send(self::MATTERMOST_CHANNEL,
-                ':green_circle: DSN OK',
+                ':large_green_circle: DSN OK',
                 '',
-                false,
+                [],
             );
         }