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]); } }