aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2017-12-04 10:24:05 +0100
committermarcinzelent <zelent.marcin@gmail.com>2017-12-04 10:24:05 +0100
commit37985c9923e712dc517b03f3280ce44b28090548 (patch)
treeea119c22d3a319f7970c46cc24c052935841d366 /PollutometerWebApi/Controllers
parentae24bfaa1a713e17db76ce69394ef9d2f62ad2ef (diff)
Sending e-mail if value is bigger or equal 151.
Diffstat (limited to 'PollutometerWebApi/Controllers')
-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();
}