Fix weather restrictions check
This was accidentally removed in a bad merge
This commit is contained in:
@@ -253,7 +253,7 @@ export const getWateringData = async function( req: express.Request, res: expres
|
|||||||
// Continue with the weather request
|
// Continue with the weather request
|
||||||
let timeData: TimeData = getTimeData( coordinates );
|
let timeData: TimeData = getTimeData( coordinates );
|
||||||
let wateringData: WateringData;
|
let wateringData: WateringData;
|
||||||
if ( adjustmentMethod !== ADJUSTMENT_METHOD.MANUAL ) {
|
if ( adjustmentMethod !== ADJUSTMENT_METHOD.MANUAL || checkRestrictions ) {
|
||||||
if ( !weatherProvider.getWateringData ) {
|
if ( !weatherProvider.getWateringData ) {
|
||||||
res.send( "Error: selected WeatherProvider does not support getWateringData" );
|
res.send( "Error: selected WeatherProvider does not support getWateringData" );
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user