Skip to content

Commit

Permalink
Merge pull request #105 from kiloutyg/104-issue-with-mailing-in-efnc-…
Browse files Browse the repository at this point in the history
…without-any-personnel-to-send-them-to

added a test to check if there was efnc old enough to genrate a remin…
  • Loading branch information
kiloutyg authored Sep 4, 2024
2 parents 38c98ce + 3235b10 commit 7dccb7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controller/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ class FrontController extends BaseController
#[Route('/', name: 'base')]
public function base(): Response
{
$this->mailerService->sendReminderEmailToAdmin();
if (count($this->EFNCRepository->getMonthOldLowLevelRiskEfnc()) > 0) {
$this->mailerService->sendReminderEmailToAdmin();
}

return $this->render('base.html.twig', []);
}
Expand Down

0 comments on commit 7dccb7d

Please sign in to comment.