Fixed test

This commit is contained in:
Eldad Fux committed 2023-12-20 00:15:45 +01:00
1 parent cac0b0b5e4
commit 90e8e04e08
1 file changed
+1 -1
+1 -1
View File
@@ -1657,7 +1657,7 @@ App::post('/v1/projects/:projectId/smtp/tests')
$smtp = $project->getAttribute('smtp', []);
$smtpEnabled = $smtp['enabled'] ?? false;
if ($smtpEnabled) {
if (!$smtpEnabled) {
throw new Exception(Exception::GENERAL_SMTP_DISABLED, 'SMTP disabled');
}