From b5b4ab311595ba6ce671d890951737836a74dfce Mon Sep 17 00:00:00 2001 From: Samer Albahra Date: Wed, 25 Nov 2015 03:22:26 -0600 Subject: [PATCH] Fix default value for users with Auto Rain Delay method --- routes/weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/weather.js b/routes/weather.js index 87111ee..2280fa5 100644 --- a/routes/weather.js +++ b/routes/weather.js @@ -415,7 +415,7 @@ exports.getWeather = function( req, res ) { // If it is raining and the user has weather-based rain delay as the adjustment method then apply the specified delay if ( adjustmentMethod === 2 ) { - rainDelay = ( adjustmentOptions && adjustmentOptions.hasOwnProperty( "d" ) ) ? adjustmentOptions.d : 1440; + rainDelay = ( adjustmentOptions && adjustmentOptions.hasOwnProperty( "d" ) ) ? adjustmentOptions.d : 24; } else { // For any other adjustment method, apply a scale of 0 (as the scale will revert when the rain stops)