From 2db1d6efc7c82823fdfaf6fc23e95047c937174f Mon Sep 17 00:00:00 2001 From: Hemachandar Date: Sat, 21 Mar 2026 15:37:57 +0530 Subject: [PATCH] add success --- app/controllers/api/projects.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index e97c2a914b..65665fe6bf 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -1457,7 +1457,7 @@ Http::patch('/v1/projects/:projectId/smtp') throw new Exception(Exception::PROJECT_SMTP_CONFIG_INVALID, $error->getMessage()); } finally { $duration = microtime(true) - $validationStartTime; - $smtpVerificationDuration->record($duration, ['projectId' => $projectId]); + $smtpVerificationDuration->record($duration, ['projectId' => $projectId, 'success' => isset($valid) && $valid]); } }