From 9accca3b0f60215fcc2c063e7cb55e59dc23f84f Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 21 Mar 2020 22:28:46 +0100 Subject: [PATCH] update event trigger --- src/Controller/TemperatureApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/TemperatureApiController.php b/src/Controller/TemperatureApiController.php index 5126065..def2ec8 100644 --- a/src/Controller/TemperatureApiController.php +++ b/src/Controller/TemperatureApiController.php @@ -37,7 +37,7 @@ class TemperatureApiController extends AbstractController $manager->persist($entity); $manager->flush(); - if ($entity->getValue() < 25) { + if ($entity->getValue() <= 24.5) { $message = (new \Swift_Message('[Terrarium] Alerte température')) ->setFrom('terrarium@deblan.fr') ->setTo(['simon@deblan.fr', 'jennifer@derago.fr'])