Skip to content

Commit

Permalink
clean(ZMSKVR-125): remove error_logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fink authored and Thomas Fink committed Feb 14, 2025
1 parent 8017efe commit 34039d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions zmsapi/src/Zmsapi/ProcessDeleteMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use BO\Slim\Render;
use BO\Mellon\Validator;
use BO\Zmsdb\Mail as Query;
use BO\Zmsdb\Config;
use BO\Zmsdb\Process as ProcessRepository;
use BO\Zmsdb\Department as DepartmentRepository;
Expand Down Expand Up @@ -57,11 +58,7 @@ protected static function writeMail(Process $process)
->toResolvedEntity($collection, $config, 'deleted')
->withDepartment($department);
$mail->testValid();
error_log("outside");
error_log($process->getFirstClient()->hasEmail());
error_log($process->scope->hasEmailFrom());
if ($process->getFirstClient()->hasEmail() && $process->scope->hasEmailFrom()) {
error_log("inside");
$mail = (new \BO\Zmsdb\Mail())->writeInQueue($mail, \App::$now, false);
\App::$log->debug("Send mail", [$mail]);
}
Expand Down

0 comments on commit 34039d1

Please sign in to comment.