mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Fixed test
This commit is contained in:
1 parent
cac0b0b5e4
commit
90e8e04e08
1 file changed
+1
-1
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user