From 587544fb18c2dba039ca311dcce2ff60836b8708 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 15 Oct 2025 13:17:53 +0200 Subject: [PATCH] wait #7646 @0.25 --- app/Console/Commands/DSNCheck.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/DSNCheck.php b/app/Console/Commands/DSNCheck.php index 562284691..aec98878c 100644 --- a/app/Console/Commands/DSNCheck.php +++ b/app/Console/Commands/DSNCheck.php @@ -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, + [], ); } -- 2.39.5