From 74f6a00f7be27a1ef1d4e580f34ec8c41e93356f Mon Sep 17 00:00:00 2001 From: Matthew Oslan Date: Mon, 27 May 2019 02:56:57 -0400 Subject: [PATCH] Fix weather restrictions check This was accidentally removed in a bad merge --- routes/weather.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/weather.ts b/routes/weather.ts index 2a9957d..a1f1e04 100644 --- a/routes/weather.ts +++ b/routes/weather.ts @@ -253,7 +253,7 @@ export const getWateringData = async function( req: express.Request, res: expres // Continue with the weather request let timeData: TimeData = getTimeData( coordinates ); let wateringData: WateringData; - if ( adjustmentMethod !== ADJUSTMENT_METHOD.MANUAL ) { + if ( adjustmentMethod !== ADJUSTMENT_METHOD.MANUAL || checkRestrictions ) { if ( !weatherProvider.getWateringData ) { res.send( "Error: selected WeatherProvider does not support getWateringData" ); return;