aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'PollutometerWebApi/Controllers/ReadingsController.cs')
-rw-r--r--PollutometerWebApi/Controllers/ReadingsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/PollutometerWebApi/Controllers/ReadingsController.cs b/PollutometerWebApi/Controllers/ReadingsController.cs
index f915e17..c80599f 100644
--- a/PollutometerWebApi/Controllers/ReadingsController.cs
+++ b/PollutometerWebApi/Controllers/ReadingsController.cs
@@ -67,7 +67,7 @@ namespace PollutometerWebApi.Controllers
{
SqlOperator.PostReading(reading);
var aqi = AqiCalculator.CalculateAqi(reading);
- if (aqi.Value > 151)
+ if (aqi.Value >= 151)
EmailSender.SendEmail(aqi);
return Ok();
}